Skip to content

Commit

Permalink
hotfix: include DAILY_STATS in immediate push notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Soxasora committed Dec 30, 2024
1 parent 4a67890 commit b23e0bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sw/eventListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function onPush (sw) {
// if there is no tag or it's a TIP, FORWARDEDTIP or EARN notification
// we don't need to merge notifications and thus the notification should be immediately shown using `showNotification`
const immediatelyShowNotification = (tag) =>
!tag || ['TIP', 'FORWARDEDTIP', 'EARN', 'STREAK', 'TERRITORY_TRANSFER'].includes(tag.split('-')[0])
!tag || ['TIP', 'FORWARDEDTIP', 'EARN', 'STREAK', 'TERRITORY_TRANSFER', 'DAILY_STATS'].includes(tag.split('-')[0])

const mergeAndShowNotification = async (sw, payload, currentNotifications, tag, nid) => {
// sanity check
Expand Down

0 comments on commit b23e0bb

Please sign in to comment.