Skip to content

Commit

Permalink
Notifications XP drop threshold time changed to 24h
Browse files Browse the repository at this point in the history
  • Loading branch information
ioay committed Dec 4, 2023
1 parent 1bc4b20 commit 56030ad
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions background/services/island/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -247,8 +246,7 @@ export default class IslandService extends BaseService<Events> {
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()
Expand Down

0 comments on commit 56030ad

Please sign in to comment.