From a6dfab47d5ac44c9c5e410ac9bc097e8a5a4a21a Mon Sep 17 00:00:00 2001 From: julius Date: Mon, 19 May 2025 14:59:10 +0200 Subject: [PATCH] fix: props.list empty --- src/Rankings.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rankings.tsx b/src/Rankings.tsx index 3b670f8..3e75e4f 100644 --- a/src/Rankings.tsx +++ b/src/Rankings.tsx @@ -15,7 +15,7 @@ function PlayerList(props: PlayerListProps) { {...props} animation={200} swapThreshold={0.2} - style={{ minHeight: props.list?.length < 1 ? 64 : 32 }} + style={{ minHeight: props.list && props.list?.length < 1 ? 64 : 32 }} > {props.list?.map((item, index) => (