Skip to content

Commit

Permalink
Fix shuffle does not work before first guess (closes #104)
Browse files Browse the repository at this point in the history
  • Loading branch information
SSoelvsten committed May 5, 2024
1 parent ee7806c commit a224f0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game/src/game-screen/game.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const Game = ({ instance: { anagrams }, difficulty, language, accScore, round, o
);
// Latest guessed word for the ability to recreate them.
const [guessCache, setGuessCache] = useState<(number | null)[]>(
() => Array(words).fill(null)
() => Array(maxWordLength).fill(null)
);
// Time at which the game will end (if no additional time is obtained)
const [endTime, setEndTime] = useState<number>(
Expand Down

0 comments on commit a224f0d

Please sign in to comment.