Fix map art

This commit is contained in:
Lee 2023-01-07 14:34:06 +00:00
parent ed6a3629ca
commit 005b653544
No known key found for this signature in database
GPG Key ID: 6EA25896ECCB3121

@ -106,13 +106,13 @@ export const useSongDataStore = create<SongDataState>()((set) => ({
leaderboardType
).getMapLeaderboardData(mapHash, mapDiff, characteristic);
const mapData = await axios.get(
const response = await axios.get(
`${env("SITE_URL")}/api/beatsaver/map?hash=${mapHash}`
);
if (mapData.status !== 200) {
if (response.status !== 200) {
return set({ isLoading: false, hasError: hasError });
}
const { bsr, mapArt } = mapData.data.data;
const { bsr, mapArt } = response.data;
set({
isLoading: false,