fix: conditional rendering on artist + album pages

This commit is contained in:
Gabe Farrell 2026-01-14 21:55:33 -05:00
parent d87ed2eb97
commit e0cecac03c
2 changed files with 7 additions and 7 deletions

View file

@ -56,17 +56,17 @@ export default function Artist() {
{artist.listen_count} play{artist.listen_count > 1 ? "s" : ""}
</p>
)}
{
{artist.time_listened !== 0 && (
<p title={Math.floor(artist.time_listened / 60 / 60) + " hours"}>
{timeListenedString(artist.time_listened)}
</p>
}
{
)}
{artist.first_listen > 0 && (
<p title={new Date(artist.first_listen * 1000).toLocaleString()}>
Listening since{" "}
{new Date(artist.first_listen * 1000).toLocaleDateString()}
</p>
}
)}
</div>
}
>