Skip to content

Commit

Permalink
fix(Whats New): expire old announcements after 30 days of their annc …
Browse files Browse the repository at this point in the history
…date
  • Loading branch information
plondon committed May 8, 2019
1 parent 48b4dce commit 2e5d519
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const filterAnnouncements = (lastViewed, userCountry, userKycState) => {
return Announcements.map(announcement => ({
content: prop('content', announcement),
restricted: isRestricted(announcement),
display: isAvailableToView(lastViewed, 3),
display: isAvailableToView(announcement.date, 30),
alert: isAvailableToView(announcement.date, 0)
}))
}

0 comments on commit 2e5d519

Please sign in to comment.