diff --git a/src/app/features/settings/notifications/SystemNotification.tsx b/src/app/features/settings/notifications/SystemNotification.tsx index e0da07c0..791caa2e 100644 --- a/src/app/features/settings/notifications/SystemNotification.tsx +++ b/src/app/features/settings/notifications/SystemNotification.tsx @@ -97,7 +97,7 @@ function WebPushNotificationSetting() { const [isLoading, setIsLoading] = useState(true); const browserPermission = usePermissionState('notifications', getNotificationState()); useEffect(() => { - const storedPreference = localStorage.getItem(PUSH_PREFERENCE_KEY); + const storedPreference = localStorage.getItem('cinny_web_push_enabled'); setUserPushPreference(storedPreference === 'true'); setIsLoading(false); }, []);