Fix cover art being wrong?
This commit is contained in:
parent
7f9bb3fe83
commit
ed6a3629ca
@ -10,11 +10,7 @@ const BEATSAVER_MAP_API =
|
||||
const KEY = "BS_MAP_DATA_";
|
||||
|
||||
function getLatestMapArt(data: BeatSaverMapData) {
|
||||
let url: string | undefined = undefined;
|
||||
for (const version of data.versions) {
|
||||
url = version.coverURL;
|
||||
}
|
||||
return url;
|
||||
return data.versions[data.versions.length - 1].coverURL;
|
||||
}
|
||||
|
||||
type MapData = {
|
||||
|
Reference in New Issue
Block a user