diff --git a/src/lib/words.ts b/src/lib/words.ts index 140f0c9..bdd1556 100644 --- a/src/lib/words.ts +++ b/src/lib/words.ts @@ -21,7 +21,7 @@ export const getWordOfDay = () => { const nextday = (index + 1) * msInDay + epochMs return { - solution: WORDS[index].toUpperCase(), + solution: WORDS[index % WORDS.length].toUpperCase(), solutionIndex: index, tomorrow: nextday, }