From 57f3feba6896033008826818b3260f4474d9cfae Mon Sep 17 00:00:00 2001
From: Jānis <97699850+janisslsm@users.noreply.github.com>
Date: Thu, 10 Nov 2022 20:33:00 +0200
Subject: spotifyControls: make album of local tracks unclickable (#203)

---
 src/plugins/spotifyControls/PlayerComponent.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'src/plugins/spotifyControls/PlayerComponent.tsx')

diff --git a/src/plugins/spotifyControls/PlayerComponent.tsx b/src/plugins/spotifyControls/PlayerComponent.tsx
index 16fa250..6396e02 100644
--- a/src/plugins/spotifyControls/PlayerComponent.tsx
+++ b/src/plugins/spotifyControls/PlayerComponent.tsx
@@ -293,15 +293,16 @@ function Info({ track }: { track: Track; }) {
                 {track.album.name && (
                     <Forms.FormText variant="text-sm/normal" className={cl("ellipoverflow")}>
                         on&nbsp;
-                        <a id={cl("album-title")}
+                        <Link id={cl("album-title")}
                             href={`https://open.spotify.com/album/${track.album.id}`}
                             target="_blank"
                             className={cl("album")}
+                            disabled={!track.album.id}
                             style={{ fontSize: "inherit" }}
                             title={track.album.name}
                         >
                             {track.album.name}
-                        </a>
+                        </Link>
                     </Forms.FormText>
                 )}
             </div>
-- 
cgit 

