From 78440cfbc3d86961eec43f935d0d755ae912f2e5 Mon Sep 17 00:00:00 2001 From: George Powell Date: Tue, 10 Feb 2026 21:05:10 -0500 Subject: [PATCH] Fix infinite stats submission and improve mobile button layout - Fix infinite loop in stats submission effect by adding statsData to early return condition - Make bottom buttons (View Stats, Sign In/Out) full-width on small screens - Buttons now stack vertically on mobile, side-by-side on medium+ screens Co-Authored-By: Claude Sonnet 4.5 --- src/routes/+page.svelte | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 494ed87..f6eea9b 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -267,7 +267,7 @@ statsData, }); - if (!browser || !isWon || !anonymousId) { + if (!browser || !isWon || !anonymousId || statsData) { console.log("Basic conditions not met"); return; } @@ -507,20 +507,20 @@ {/if} -
-
- +
+ 📊 View Stats - + {#if user} -
+ @@ -528,7 +528,7 @@ {:else}