diff --git a/projects/website/src/components/ranking/mini.tsx b/projects/website/src/components/ranking/mini.tsx index 978bd9f..62c8f6b 100644 --- a/projects/website/src/components/ranking/mini.tsx +++ b/projects/website/src/components/ranking/mini.tsx @@ -114,11 +114,11 @@ export default function Mini({ type, player, shouldUpdate }: MiniProps) { enabled: shouldUpdate, }); - if (isLoading) { + if (isLoading || !data) { return ; } - if (isError || !data) { + if (isError) { return

Error loading ranking

; }