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:
Michael Terry
2020-06-22 14:37:03 -04:00
committed by GitHub
parent 6c052a2661
commit d55c8b134c

View File

@@ -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',