mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-27 21:55:15 -05:00
Fix org ban showing as crossed out when it's not yet expired
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user