aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2026-06-03 22:23:28 -0700
committerPinapelz <yukais@pinapelz.com>2026-06-03 22:24:59 -0700
commit72b18e3a7e71f81cc4308c6d0f4d4a24120aa947 (patch)
tree725d754770a0ed85a59e3a40190264a0a7f0fc91 /src/components
parent62c9b6982fbc788af9f339cacf160e561ab11258 (diff)
migrate saved stats to flat json
Diffstat (limited to 'src/components')
-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