Merge pull request #67 from postylem/patch-2

Loop solutions
This commit is contained in:
Hannah Park 2022-01-27 08:26:32 -05:00 committed by GitHub
commit 73d7ae7686
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
}