From 005b653544aa68fc940d0d6b489b2230a53c3736 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 7 Jan 2023 14:34:06 +0000 Subject: [PATCH] Fix map art --- src/store/songDataStore.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/store/songDataStore.ts b/src/store/songDataStore.ts index 2ee19a6..18b5e2e 100644 --- a/src/store/songDataStore.ts +++ b/src/store/songDataStore.ts @@ -106,13 +106,13 @@ export const useSongDataStore = create()((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,