Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e58e9156d6 | ||
|
|
8c16c72489 |
@@ -169,8 +169,10 @@ export default function Game({ dailyPuzzle, genre = null, isSpecial = false, max
|
|||||||
if (!gameState) return <div>{t('loadingState')}</div>;
|
if (!gameState) return <div>{t('loadingState')}</div>;
|
||||||
|
|
||||||
// Use gameState directly for isSolved/isFailed to ensure consistency when returning to completed puzzles
|
// Use gameState directly for isSolved/isFailed to ensure consistency when returning to completed puzzles
|
||||||
const isSolved = gameState?.isSolved ?? hasWon;
|
// Always use gameState values directly - they are the source of truth
|
||||||
const isFailed = gameState?.isFailed ?? hasLost;
|
// This ensures that when returning to a completed puzzle, the result is shown immediately
|
||||||
|
const isSolved = Boolean(gameState.isSolved);
|
||||||
|
const isFailed = Boolean(gameState.isFailed);
|
||||||
|
|
||||||
const handleGuess = (song: any) => {
|
const handleGuess = (song: any) => {
|
||||||
if (isProcessingGuess) return;
|
if (isProcessingGuess) return;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hoerdle",
|
"name": "hoerdle",
|
||||||
"version": "0.1.6.37",
|
"version": "0.1.6.38",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
|
|||||||
Reference in New Issue
Block a user