diff --git a/next.config.js b/next.config.js index b6d079c..292323f 100644 --- a/next.config.js +++ b/next.config.js @@ -8,6 +8,7 @@ const nextConfig = { images: { domains: [ "cdn.scoresaber.com", + "cdn.beatleader.xyz", "eu.cdn.beatsaver.com", "cdn.fascinated.cc", "avatars.akamai.steamstatic.com", diff --git a/src/store/playerDataStore.ts b/src/store/playerDataStore.ts index 4151b33..47c5bc3 100644 --- a/src/store/playerDataStore.ts +++ b/src/store/playerDataStore.ts @@ -42,7 +42,7 @@ export const usePlayerDataStore = create()((set) => ({ id: playerId, isLoading: false, pp: data.pp, - avatar: `https://cdn.scoresaber.com/avatars/${playerId}.jpg`, + avatar: data.avatar || data.profilePicture, globalPos: data.rank, countryRank: data.countryRank, country: data.country,