diff --git a/server/routes/index.ts b/server/routes/index.ts index 72e396c5..e99ab3da 100644 --- a/server/routes/index.ts +++ b/server/routes/index.ts @@ -84,7 +84,7 @@ router.use('/user', isAuthenticated(), user); router.get('/settings/public', async (req, res) => { const settings = getSettings(); - if (!req.user?.settings?.notificationTypes.webpush) { + if (!(req.user?.settings?.notificationTypes.webpush ?? true)) { return res .status(200) .json({ ...settings.fullPublicSettings, enablePushRegistration: false });