From c006ee22ec6151999978cd006163957d955d3511 Mon Sep 17 00:00:00 2001 From: Roland Osborne Date: Wed, 5 Jun 2024 18:46:12 -0700 Subject: [PATCH] fixing unit test --- net/web/src/context/useAccountContext.hook.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) };