From 5e64ea2f9ec8b383d8fb9d8256284521d64e6242 Mon Sep 17 00:00:00 2001 From: Avery Felts Date: Sat, 31 Jan 2026 18:50:24 -0700 Subject: [PATCH] Fix: Remove automatic Log Usage trigger on launch/PWA --- src/components/Dashboard.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/components/Dashboard.tsx b/src/components/Dashboard.tsx index 17ed3ad..bd2108d 100644 --- a/src/components/Dashboard.tsx +++ b/src/components/Dashboard.tsx @@ -162,14 +162,8 @@ export function Dashboard({ user }: DashboardProps) { await checkAndUnlockAchievements(usage, prefs, achvs); // Check if running as PWA (home screen shortcut) - const isStandalone = window.matchMedia('(display-mode: standalone)').matches || - (window.navigator as Navigator & { standalone?: boolean }).standalone === true; - - // Always show substance picker when accessed as PWA shortcut - if (isStandalone) { - setIsSubstancePickerOpen(true); - } else if (shouldShowUsagePrompt()) { - setIsSubstancePickerOpen(true); + // No longer automatically showing substance picker + if (shouldShowUsagePrompt()) { markPromptShown(); } }