From 7c99b7b4534fdfca964320f569ed9ea6a837e7ee Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sun, 15 Feb 2026 21:07:37 +0200 Subject: [PATCH] Fix org ban showing as crossed out when it's not yet expired --- .../tournament-organization/components/BannedPlayersList.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/features/tournament-organization/components/BannedPlayersList.tsx b/app/features/tournament-organization/components/BannedPlayersList.tsx index 2690c71a0..327d61d49 100644 --- a/app/features/tournament-organization/components/BannedPlayersList.tsx +++ b/app/features/tournament-organization/components/BannedPlayersList.tsx @@ -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 (