From 8c2f47262dd5a7ce1cce3185014a82940783dd3d Mon Sep 17 00:00:00 2001 From: Arjun S <37960163+arjunindia@users.noreply.github.com> Date: Mon, 4 Aug 2025 12:44:09 +0000 Subject: [PATCH] fix --- src/App.tsx | 2 +- wrangler.jsonc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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