diff --git a/net/web/src/context/useAccountContext.hook.js b/net/web/src/context/useAccountContext.hook.js index ac45a4a9..5f0a1e98 100644 --- a/net/web/src/context/useAccountContext.hook.js +++ b/net/web/src/context/useAccountContext.hook.js @@ -97,7 +97,7 @@ export function useAccountContext() { setPushEnabled: async (flag) => { if (flag) { const status = await Notification.requestPermission(); - if (status == 'granted') { + if (status === 'granted') { const registration = await navigator.serviceWorker.register('push.js'); await navigator.serviceWorker.ready; const params = { userVisibleOnly: true, applicationServerKey: urlB64ToUint8Array(state.webPushKey) };