ENCOA-312
This commit is contained in:
@@ -69,7 +69,7 @@ const ExercisePicker: React.FC<ExercisePickerProps> = ({
|
||||
...(config.params.max_words !== undefined && {
|
||||
max_words: Number(config.params.max_words)
|
||||
}),
|
||||
...(DIFFICULTIES.includes(config.params.difficulty as string) && {
|
||||
...((DIFFICULTIES.includes(config.params.difficulty as string) || config.params.difficulty === "Random") && {
|
||||
difficulty: config.params.difficulty
|
||||
})
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user