Skip to content

Commit

Permalink
fix: safely check if notified
Browse files Browse the repository at this point in the history
  • Loading branch information
regalstreak committed May 4, 2021
1 parent e417ed8 commit 46b26cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/backgroundUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const backgroundUpdaterTask = async ({ taskId, timeout }: HeadlessEvent) => {
);

if (
notificationStore.notified === true ||
!settingsStore.notificationsEnabled
notificationStore?.notified === true ||
!settingsStore?.notificationsEnabled
) {
BackgroundFetch.finish(taskId);
return;
Expand Down

0 comments on commit 46b26cb

Please sign in to comment.