diff --git a/src/App.tsx b/src/App.tsx index ea3e95a..7bf31ef 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -120,7 +120,7 @@ function App() { if (!userState) return; const friendBoostUpgrade = UPGRADES.find(u => u.id === 'friendBoost') as Upgrade | undefined; - const ownedFriendBoost = (userState?.upgrades?.['friendBoost']?.owned || 0); + const ownedFriendBoost = ((userState?.upgrades || {})['friendBoost']?.owned || 0); if (timeoutRef.current) { clearTimeout(timeoutRef.current); diff --git a/wrangler.jsonc b/wrangler.jsonc index 2bcd018..55447f1 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -1 +1 @@ -{"name": "worker-name","compatibility_date": "2025-08-03","assets": {"directory": "./dist"}} \ No newline at end of file +{"name": "bozoclicker","compatibility_date": "2025-08-03","assets": {"directory": "./dist"}} \ No newline at end of file