Expired not Expires for expired items

This commit is contained in:
Suhail Saqan
2023-07-13 20:39:41 -05:00
committed by benthecarman
parent 6fb24b0362
commit 4899c5e5be

View File

@@ -128,7 +128,10 @@ export function PendingNwc() {
{pendingItem.name_of_connection}
</span>
<time class="text-sm text-neutral-500">
Expires {timeAgo(pendingItem.date)}
{pendingItem.date <= Date.now()
? `Expired`
: `Expires`}{" "}
${timeAgo(pendingItem.date)}`
</time>
</div>
<div>