diff --git a/panel/src/components/players/BansSection.tsx b/panel/src/components/players/BansSection.tsx index 97462f1..83b2954 100644 --- a/panel/src/components/players/BansSection.tsx +++ b/panel/src/components/players/BansSection.tsx @@ -4,6 +4,7 @@ import { Ban, Loader2, RotateCw, Undo2 } from "lucide-react"; import { Button } from "@/components/ui/button"; import { api, humanizeError } from "@/lib/api"; import { useAsync } from "@/lib/hooks"; +import { cn } from "@/lib/utils"; import { CollapsibleSection, FeedbackLine, @@ -180,7 +181,7 @@ export function BansSection({ name }: { name: string }) { )} - {loading ? ( + {loading && !data ? (
{t("access_ban_empty_hint")}
) : ( -{t("access_player_invalid")}
}