Skip to content

Commit

Permalink
FIx this shit
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir-Urik committed Apr 2, 2024
1 parent e74d82e commit 3bdaaca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Game.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ export function Game({ setGradient }: GameProps) {
return texts[0]
}

const randomText = texts[Math.floor(Math.random() * texts.length)]
let randomText = texts[Math.floor(Math.random() * texts.length)]
while (randomText === text) {
return texts[Math.floor(Math.random() * texts.length)]
randomText = texts[Math.floor(Math.random() * texts.length)]
}

return randomText
Expand Down

0 comments on commit 3bdaaca

Please sign in to comment.