Skip to content

Commit

Permalink
impl requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
od-hunter committed Aug 22, 2024
1 parent 9e47321 commit 40181c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/pages/home/questAndCollectionTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const QuestAndCollectionTabs: FunctionComponent<
}, [address]);

const completedBoostNumber = useMemo(
() => boosts?.filter((b) => completedBoostIds?.includes(b.id) && (b.expiry - new Date().getTime()) / MILLISECONDS_PER_WEEK <= 3).length,
() => boosts?.filter((b) => completedBoostIds?.includes(b.id) && ((new Date().getTime() - b.expiry) / MILLISECONDS_PER_WEEK <= 3 && !b.hidden)).length,
[boosts, completedBoostIds]
);

Expand Down

0 comments on commit 40181c4

Please sign in to comment.