fix ranking page
All checks were successful
Deploy Website / deploy (push) Successful in 3m55s

This commit is contained in:
Lee 2024-10-12 22:56:29 +01:00
parent 6d1c911c9f
commit ba8579d60c

@ -23,7 +23,7 @@ export default function RankingData({ initialPage, country, initialPageData }: R
const [rankingData, setRankingData] = useState<ScoreSaberPlayersPageToken | undefined>(initialPageData); const [rankingData, setRankingData] = useState<ScoreSaberPlayersPageToken | undefined>(initialPageData);
const { data, isLoading, isError } = useQuery({ const { data, isLoading, isError } = useQuery({
queryKey: ["rankingData", currentPage], queryKey: ["rankingData", currentPage, country],
queryFn: async () => { queryFn: async () => {
const players = const players =
country == undefined country == undefined