Skip to content

Commit

Permalink
format files
Browse files Browse the repository at this point in the history
  • Loading branch information
pratyush1712 committed Oct 1, 2023
1 parent 60f7204 commit 246e2e1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions frontend/src/components/AuthManager/subscribeUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,13 @@ const subscribeUser = (userType: string, userId: string) => {
.catch((e) => {

Check warning on line 59 in frontend/src/components/AuthManager/subscribeUser.ts

View workflow job for this annotation

GitHub Actions / check

'e' is defined but never used
if (Notification.permission !== 'granted') {
// 'Permission was not granted.'
alert('Please allow notifications to receive notifications.');
alert(
'Please allow notifications to receive notifications.'
);
} else {
alert('An error ocurred during the subscription process. Please contact the administrator for help.');
alert(
'An error ocurred during the subscription process. Please contact the administrator for help.'
);
}
});
} else {
Expand Down

0 comments on commit 246e2e1

Please sign in to comment.