fix: don't show text unknown

This commit is contained in:
Fredrik Burmester
2024-08-25 11:17:05 +02:00
parent 638e8851c1
commit 42f4631143

View File

@@ -169,17 +169,17 @@ export const CurrentlyPlayingBar: React.FC = () => {
metadata: { metadata: {
artist: currentlyPlaying.item?.AlbumArtist artist: currentlyPlaying.item?.AlbumArtist
? currentlyPlaying.item?.AlbumArtist ? currentlyPlaying.item?.AlbumArtist
: "Unknown", : undefined,
title: currentlyPlaying.item?.Name title: currentlyPlaying.item?.Name
? currentlyPlaying.item?.Name ? currentlyPlaying.item?.Name
: "Unknown", : "Unknown",
description: currentlyPlaying.item?.Overview description: currentlyPlaying.item?.Overview
? currentlyPlaying.item?.Overview ? currentlyPlaying.item?.Overview
: "Unknown", : undefined,
imageUri: backdropUrl ? backdropUrl : undefined, imageUri: backdropUrl ? backdropUrl : undefined,
subtitle: currentlyPlaying.item?.Album subtitle: currentlyPlaying.item?.Album
? currentlyPlaying.item?.Album ? currentlyPlaying.item?.Album
: "Unknown", : undefined,
}, },
}} }}
onBuffer={(e) => onBuffer={(e) =>