Skip to content

Commit

Permalink
Update primary-token-price-changed-notification.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljscript committed Oct 25, 2024
1 parent ef33c86 commit 977de01
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ if (!TaskManager.isTaskDefined(backgroundTaskId)) {
TaskManager.defineTask(backgroundTaskId, async () => {
const notifications = await buildNotifications(appStorage)
notifications.forEach((notification) => notificationManager.events.push(notification))

const hasNewData = notifications.length > 0
return hasNewData ? BackgroundFetch.BackgroundFetchResult.NewData : BackgroundFetch.BackgroundFetchResult.NoData
})
Expand Down

0 comments on commit 977de01

Please sign in to comment.