forgot to remove removed const ref

This commit is contained in:
Gigiaj 2025-06-10 20:24:43 -05:00
parent c416785f76
commit 350f3ac2f7

View file

@ -97,7 +97,7 @@ function WebPushNotificationSetting() {
const [isLoading, setIsLoading] = useState<boolean>(true); const [isLoading, setIsLoading] = useState<boolean>(true);
const browserPermission = usePermissionState('notifications', getNotificationState()); const browserPermission = usePermissionState('notifications', getNotificationState());
useEffect(() => { useEffect(() => {
const storedPreference = localStorage.getItem(PUSH_PREFERENCE_KEY); const storedPreference = localStorage.getItem('cinny_web_push_enabled');
setUserPushPreference(storedPreference === 'true'); setUserPushPreference(storedPreference === 'true');
setIsLoading(false); setIsLoading(false);
}, []); }, []);