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 da958a8 commit ef33c86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ if (!TaskManager.isTaskDefined(backgroundTaskId)) {
const appStorage = mountAsyncStorage({path: '/'})
TaskManager.defineTask(backgroundTaskId, async () => {
const notifications = await buildNotifications(appStorage)
const hasNewData = notifications.length > 0
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 ef33c86

Please sign in to comment.