rewrite: minor changes

This commit is contained in:
RoxanneRlld
2024-02-19 09:18:09 +01:00
parent 1ebb863b81
commit 2fea366313
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -46,8 +46,8 @@ export const saveToLocalStorage = async (time: string, difficulty: Difficulty, g
};
export const getDifficultyLabel = (difficulty: Difficulty): string => {
if (difficulty == 'beginner') return 'Débutant';
if (difficulty == 'intermediate') return 'Intermédiaire';
if (difficulty == 'expert') return 'Expert';
if (difficulty === 'beginner') return 'Débutant';
if (difficulty === 'intermediate') return 'Intermédiaire';
if (difficulty === 'expert') return 'Expert';
return difficulty;
};