fix: show listening status on profile with link hidden

This commit is contained in:
trisua 2025-04-28 00:06:00 -04:00
parent d669cd4d4e
commit 2924759b01
2 changed files with 2 additions and 3 deletions

View file

@ -107,9 +107,9 @@
<div class="card flex flex-col gap-2">
<!-- prettier-ignore -->
<div style="display: contents;">
{% if profile.connections.Spotify and profile.connections.Spotify[0].data.name and profile.connections.Spotify[0].show_on_profile %}
{% if profile.connections.Spotify and profile.connections.Spotify[0].data.name %}
{{ components::spotify_playing(state=profile.connections.Spotify[1]) }}
{% elif profile.connections.LastFm and profile.connections.LastFm[0].data.name and profile.connections.LastFm[0].show_on_profile %}
{% elif profile.connections.LastFm and profile.connections.LastFm[0].data.name %}
{{ components::last_fm_playing(state=profile.connections.LastFm[1]) }}
{% endif %}
</div>