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) => (