Skip to content

Commit

Permalink
Merge pull request #78 from s1lvax/fix/unlink-spotify
Browse files Browse the repository at this point in the history
fixed unlink spotify button
  • Loading branch information
s1lvax authored Oct 23, 2024
2 parents 9c617d2 + d6cf4ff commit 4f56799
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/lib/components/MyProfile/UserSettings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
<div class="flex flex-row space-x-2">
{#if data.spotifyToken}
<form action="?/unlinkSpotify" method="POST" use:enhance>
<Button variant="destructive"><AudioLines class="mr-2" /> Unlink Spotify</Button>
<Button variant="destructive" type="submit"
><AudioLines class="mr-2" /> Unlink Spotify</Button
>
</form>
{:else}
<Button href="/api/spotify/login"
Expand Down
3 changes: 1 addition & 2 deletions src/lib/components/Shared/MusicPlayer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
<AudioLines class="mr-2 text-green-700" /> Music
</div>
</Card.Title>
<Card.Description>The developer is currently listening to</Card.Description>
</Card.Header>

<Card.Content>
Expand Down Expand Up @@ -77,7 +76,7 @@
</div>
{:else}
<div class="flex items-center">
<p>Not listening to anything currently</p>
<p>N/A</p>
</div>
{/if}
</Card.Content>
Expand Down

0 comments on commit 4f56799

Please sign in to comment.