aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Game/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Game/index.tsx')
-rw-r--r--src/components/Game/index.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/Game/index.tsx b/src/components/Game/index.tsx
index cde682d..902464b 100644
--- a/src/components/Game/index.tsx
+++ b/src/components/Game/index.tsx
@@ -45,7 +45,7 @@ export function Game({
}: Props) {
const [sessionDate] = React.useState(() => getUtcDate());
const recentFinishedPlay = localStorage.getItem("recentFinishedPlay");
- const hasFinishedCurrentRound = didGuess || currentTry >= guesses.length;
+ const hasFinishedCurrentRound = didGuess || currentTry >= guesses.length || (recentFinishedPlay === sessionDate && mode === "daily");
const isGameOver = hasFinishedCurrentRound;
const isBlocked =
mode === "daily" &&
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage