From 56030ad0231fe943e30a3b526e44fee77716de91 Mon Sep 17 00:00:00 2001 From: ioay Date: Mon, 4 Dec 2023 17:21:15 +0100 Subject: [PATCH] Notifications XP drop threshold time changed to 24h --- background/services/island/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/background/services/island/index.ts b/background/services/island/index.ts index 77ef63184..451320682 100644 --- a/background/services/island/index.ts +++ b/background/services/island/index.ts @@ -25,8 +25,7 @@ import { normalizeEVMAddress } from "../../lib/utils" import { FeatureFlags, isDisabled, isEnabled } from "../../features" import { SmartContractFungibleAsset } from "../../assets" -// const NOTIFICATIONS_XP_DROP_THRESHOLD_MS = 86_400_000 // 24h -const NOTIFICATIONS_XP_DROP_THRESHOLD_MS_FOR_TESTING_PURPOSE = 30_000 // 30s +const NOTIFICATIONS_XP_DROP_THRESHOLD_MS = 86_400_000 // 24h export { TESTNET_TAHO, @@ -247,8 +246,7 @@ export default class IslandService extends BaseService { private checkXPDrop() { const shouldShowXpDropNotifications = Date.now() > - this.lastXpDropNotificationInMs + - NOTIFICATIONS_XP_DROP_THRESHOLD_MS_FOR_TESTING_PURPOSE + this.lastXpDropNotificationInMs + NOTIFICATIONS_XP_DROP_THRESHOLD_MS if (shouldShowXpDropNotifications) { this.lastXpDropNotificationInMs = Date.now()