Don't show verified-only badge on Today (#92)
If the Today date entry on the dates tab doesn't have any items, we were showing the Verified Only badge. This fixes that mistake.
This commit is contained in:
@@ -66,7 +66,7 @@ function getBadgeListAndColor(date, intl, item, items) {
|
||||
},
|
||||
{
|
||||
message: messages.verifiedOnly,
|
||||
shownForDay: items.every(x => !hasAccess(x)),
|
||||
shownForDay: items.length && items.every(x => !hasAccess(x)),
|
||||
shownForItem: x => !hasAccess(x),
|
||||
icon: faLock,
|
||||
bg: 'bg-dark-500',
|
||||
|
||||
Reference in New Issue
Block a user