Skip to content

Commit

Permalink
Fix logic in push notification permission check
Browse files Browse the repository at this point in the history
  • Loading branch information
mhoran committed Nov 15, 2024
1 parent 9ae8801 commit 095c9a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/helpers/push-notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const getPushNotificationStatusAsync = async (): Promise<
const { status } = await Notifications.requestPermissionsAsync();
finalStatus = status;
}
if (finalStatus !== Notifications.PermissionStatus.DENIED) {
if (finalStatus !== Notifications.PermissionStatus.GRANTED) {
return;
}
token = (
Expand Down

0 comments on commit 095c9a5

Please sign in to comment.