Fix player data not being fetched
This commit is contained in:
parent
f998291b2e
commit
a9a15a9bae
@ -30,7 +30,11 @@ export const usePlayerDataStore = create<PlayerDataState>()((set) => ({
|
|||||||
const apiUrl = Utils.getWebsiteApi(
|
const apiUrl = Utils.getWebsiteApi(
|
||||||
leaderboardType
|
leaderboardType
|
||||||
).ApiUrl.PlayerData.replace("%s", playerId);
|
).ApiUrl.PlayerData.replace("%s", playerId);
|
||||||
const response = await axios.get(apiUrl);
|
const response = await axios.get(apiUrl, {
|
||||||
|
headers: {
|
||||||
|
"x-requested-with": "BeatSaber Overlay",
|
||||||
|
},
|
||||||
|
});
|
||||||
if (response.status !== 200) {
|
if (response.status !== 200) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user