From ba8579d60cb618fe9075bf21ab3937dded96daf5 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 12 Oct 2024 22:56:29 +0100 Subject: [PATCH] fix ranking page --- projects/website/src/components/ranking/ranking-data.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/website/src/components/ranking/ranking-data.tsx b/projects/website/src/components/ranking/ranking-data.tsx index fdb448b..a13a6ad 100644 --- a/projects/website/src/components/ranking/ranking-data.tsx +++ b/projects/website/src/components/ranking/ranking-data.tsx @@ -23,7 +23,7 @@ export default function RankingData({ initialPage, country, initialPageData }: R const [rankingData, setRankingData] = useState(initialPageData); const { data, isLoading, isError } = useQuery({ - queryKey: ["rankingData", currentPage], + queryKey: ["rankingData", currentPage, country], queryFn: async () => { const players = country == undefined