From 977de0111091a1f6c85aacea0d6724f767ae8c4c Mon Sep 17 00:00:00 2001 From: Michal Date: Fri, 25 Oct 2024 10:52:55 +0100 Subject: [PATCH] Update primary-token-price-changed-notification.ts --- .../useCases/common/primary-token-price-changed-notification.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/wallet-mobile/src/features/Notifications/useCases/common/primary-token-price-changed-notification.ts b/apps/wallet-mobile/src/features/Notifications/useCases/common/primary-token-price-changed-notification.ts index c2c0871424..438c8a77ce 100644 --- a/apps/wallet-mobile/src/features/Notifications/useCases/common/primary-token-price-changed-notification.ts +++ b/apps/wallet-mobile/src/features/Notifications/useCases/common/primary-token-price-changed-notification.ts @@ -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 })