Fix: Remove automatic Log Usage trigger on launch/PWA

This commit is contained in:
Avery Felts 2026-01-31 18:50:24 -07:00
parent 30442cb177
commit 5e64ea2f9e

View File

@ -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();
}
}