Fix org ban showing as crossed out when it's not yet expired

This commit is contained in:
Kalle
2026-02-15 21:07:37 +02:00
parent 9d268c8d5b
commit 7c99b7b453

View File

@@ -1,5 +1,5 @@
import clsx from "clsx";
import { isFuture } from "date-fns";
import { isPast } from "date-fns";
import * as React from "react";
import { useTranslation } from "react-i18next";
import { Link } from "react-router";
@@ -57,7 +57,7 @@ export function BannedUsersList({
{bannedUsers.map((bannedUser) => {
const isExpired =
bannedUser.expiresAt &&
isFuture(databaseTimestampToDate(bannedUser.expiresAt));
isPast(databaseTimestampToDate(bannedUser.expiresAt));
return (
<tr key={bannedUser.id}>