fix(daily): remove invalid phase comparison causing TS build error

This commit is contained in:
jessy-david-dev
2026-04-11 15:57:35 +02:00
parent fd99425269
commit 589e379dc3
+1 -1
View File
@@ -46,7 +46,7 @@ export function DailyScreen({ onBack, currentUserId }: { onBack: () => void; cur
); );
// Erreur initiale // Erreur initiale
if (game.loadError && game.phase === "loading") return ( if (game.loadError) return (
<div className="min-h-dvh bg-[#0f0f0f] text-[#f0f0f0] flex flex-col items-center justify-center gap-4 px-4"> <div className="min-h-dvh bg-[#0f0f0f] text-[#f0f0f0] flex flex-col items-center justify-center gap-4 px-4">
<p className="text-[#888]">{game.loadError}</p> <p className="text-[#888]">{game.loadError}</p>
<button className={btnGhost} style={{ width: "auto", padding: "0 20px" }} onClick={onBack}>Retour</button> <button className={btnGhost} style={{ width: "auto", padding: "0 20px" }} onClick={onBack}>Retour</button>