rewrite: minor changes
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
// ---------------------------------------------------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
// ------------------------------------------------------ React --------------------------------------------------------
|
// ------------------------------------------------------ React --------------------------------------------------------
|
||||||
import { useCallback, useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
// ---------------------------------------------------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
// ----------------------------------------------- Context & Stockage --------------------------------------------------
|
// ----------------------------------------------- Context & Stockage --------------------------------------------------
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user