Fix incorrect imports: hasSpecial and SPECIAL_EFFECTS should be imported from special-effects.ts, not upgrade-effects.ts
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 40s

- Fixed src/components/game/GameContext/Provider.tsx
- Fixed src/components/game/GameContext/types.ts

The upgrade-effects.ts imports these from special-effects.ts but doesn't re-export them.
This commit is contained in:
Refactoring Agent
2026-05-06 10:32:38 +02:00
parent fe2d1f6bc6
commit 930d5b9e29
10 changed files with 68 additions and 68 deletions
+4 -3
View File
@@ -205,14 +205,15 @@ export default function ManaLoopGame() {
initGame();
}, [initGame]);
const [mounted, setMounted] = useState(false);
useEffect(() => { setMounted(true); }, []);
// Conditional returns AFTER all hooks
if (gameOver) {
return <GameOverScreen store={{ day, hour, insight }} />;
}
if (typeof window === 'undefined') {
return <div>Loading...</div>;
}
if (!mounted) return <div className="p-4 text-center text-gray-400">Loading...</div>;
return (
<ErrorBoundary>