diff --git a/web/push-notif/push-notifs-handler.js b/web/push-notif/push-notifs-handler.js --- a/web/push-notif/push-notifs-handler.js +++ b/web/push-notif/push-notifs-handler.js @@ -48,7 +48,7 @@ ); React.useEffect(() => { - electron?.fetchDeviceToken(); + electron?.fetchDeviceToken?.(); }, []); React.useEffect(