Fix cover art being wrong?

This commit is contained in:
Lee 2023-01-07 14:27:48 +00:00
parent 7f9bb3fe83
commit ed6a3629ca
No known key found for this signature in database
GPG Key ID: 6EA25896ECCB3121

View File

@ -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 = {