From e3a4888352fdf5eb091325049a2b14ad91ad8742 Mon Sep 17 00:00:00 2001 From: reasje Date: Mon, 15 Jan 2024 15:06:22 +0330 Subject: [PATCH] imprv: epoch check logic --- .../notifications/domain/background_fetch_config_use_case.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/features/settings/subfeatures/notifications/domain/background_fetch_config_use_case.dart b/lib/features/settings/subfeatures/notifications/domain/background_fetch_config_use_case.dart index 01618747..9b7d92c2 100644 --- a/lib/features/settings/subfeatures/notifications/domain/background_fetch_config_use_case.dart +++ b/lib/features/settings/subfeatures/notifications/domain/background_fetch_config_use_case.dart @@ -100,7 +100,7 @@ class BackgroundFetchConfigUseCase extends ReactiveUseCase { int epochQuantity = epochNumber - lastEpoch; - if (expectedEpochOccurrence == epochQuantity) { + if (expectedEpochOccurrence <= epochQuantity) { periodicalCallData = periodicalCallData.copyWith(lasEpoch: epochNumber); AXSNotification().showNotification("Epoch Achievement Alert!", "Congratulations! The anticipated epoch you've been waiting for has just occurred. It's a significant milestone. Let's take the next steps forward.,");