diff --git a/client/app/components/TopTracks.tsx b/client/app/components/TopTracks.tsx
index 85fef79..bfe31ca 100644
--- a/client/app/components/TopTracks.tsx
+++ b/client/app/components/TopTracks.tsx
@@ -28,17 +28,19 @@ const TopTracks = (props: Props) => {
queryFn: ({ queryKey }) => getTopTracks(queryKey[1] as getItemsArgs),
});
+ const header = "Top tracks";
+
if (isPending) {
return (
- Top Tracks
+ {header}
diff --git a/client/app/routes/MediaItems/Album.tsx b/client/app/routes/MediaItems/Album.tsx
index b300422..afba6f7 100644
--- a/client/app/routes/MediaItems/Album.tsx
+++ b/client/app/routes/MediaItems/Album.tsx
@@ -50,17 +50,17 @@ export default function Album() {
{album.listen_count} play{album.listen_count > 1 ? "s" : ""}
)}
- {
+ {album.time_listened && (
{timeListenedString(album.time_listened)}
- }
- {
+ )}
+ {album.first_listen && (
Listening since{" "}
{new Date(album.first_listen * 1000).toLocaleDateString()}
- }
+ )}
}
>
diff --git a/client/app/routes/MediaItems/Track.tsx b/client/app/routes/MediaItems/Track.tsx
index 2a45e2f..20258c1 100644
--- a/client/app/routes/MediaItems/Track.tsx
+++ b/client/app/routes/MediaItems/Track.tsx
@@ -49,23 +49,28 @@ export default function Track() {
}}
subContent={
-
appears on {album.title}
- {track.listen_count && (
+
+ Appears on{" "}
+
+ {album.title}
+
+
+ {track.listen_count !== 0 && (
{track.listen_count} play{track.listen_count > 1 ? "s" : ""}
)}
- {
+ {track.time_listened !== 0 && (
{timeListenedString(track.time_listened)}
- }
- {
+ )}
+ {track.first_listen > 0 && (
Listening since{" "}
{new Date(track.first_listen * 1000).toLocaleDateString()}
- }
+ )}
}
>