From a749f479daa1bd31899ab268d01479cbafa85505 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Sat, 22 Jan 2022 22:47:52 +0100 Subject: [PATCH] prevent undefined --- app/Utils/SongUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Utils/SongUtils.ts b/app/Utils/SongUtils.ts index be2757d..a4dc9b1 100644 --- a/app/Utils/SongUtils.ts +++ b/app/Utils/SongUtils.ts @@ -114,7 +114,7 @@ export async function getCurrentPlayingFromSpotify(): Promise artist.name).join(', '), + author: current_track.data.item.artists.map(artist => artist.name).join(', ') || '', id: current_track.data.item.id, image: current_track.data.item.album.images[0], progress: current_track.data.progress_ms,