diff --git a/src/helpers/beatSaverHelpers.ts b/src/helpers/beatSaverHelpers.ts index 0cac363..db56648 100644 --- a/src/helpers/beatSaverHelpers.ts +++ b/src/helpers/beatSaverHelpers.ts @@ -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 = {