Fix: Remove automatic Log Usage trigger on launch/PWA
This commit is contained in:
parent
30442cb177
commit
5e64ea2f9e
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user