mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-10 01:00:28 +03:00
forgot to remove removed const ref
This commit is contained in:
parent
c416785f76
commit
350f3ac2f7
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue