Skip to content

Commit 4889f21

Browse files
committed
refactor: handle push notification permission error
1 parent 146b394 commit 4889f21

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/components/notification-settings.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ const NotificationSettingsContent = ({
126126
try {
127127
await askPermission();
128128
} catch (err) {
129+
console.error("Notification permission error: ", err);
129130
form.setFieldsValue({ pushNotifications: false });
130131
}
131132
}

0 commit comments

Comments
 (0)