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
+1 -1
View File
@@ -3,7 +3,7 @@
// --------------------------------------------------------------------------------------------------------------------- // ---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------ React -------------------------------------------------------- // ------------------------------------------------------ React --------------------------------------------------------
import { useCallback, useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
// --------------------------------------------------------------------------------------------------------------------- // ---------------------------------------------------------------------------------------------------------------------
// ----------------------------------------------- Context & Stockage -------------------------------------------------- // ----------------------------------------------- Context & Stockage --------------------------------------------------
+3 -3
View File
@@ -46,8 +46,8 @@ export const saveToLocalStorage = async (time: string, difficulty: Difficulty, g
}; };
export const getDifficultyLabel = (difficulty: Difficulty): string => { export const getDifficultyLabel = (difficulty: Difficulty): string => {
if (difficulty == 'beginner') return 'Débutant'; if (difficulty === 'beginner') return 'Débutant';
if (difficulty == 'intermediate') return 'Intermédiaire'; if (difficulty === 'intermediate') return 'Intermédiaire';
if (difficulty == 'expert') return 'Expert'; if (difficulty === 'expert') return 'Expert';
return difficulty; return difficulty;
}; };