From 350f3ac2f789c19a78f753b8afb3e45dad2eff27 Mon Sep 17 00:00:00 2001 From: Gigiaj Date: Tue, 10 Jun 2025 20:24:43 -0500 Subject: [PATCH] forgot to remove removed const ref --- src/app/features/settings/notifications/SystemNotification.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }, []);