Skip to content

Commit

Permalink
🐞 fix: Return Spotify URL as track href, rather than API link
Browse files Browse the repository at this point in the history
  • Loading branch information
josephshambrook committed Oct 24, 2022
1 parent de83737 commit f8dd7bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const mapTracks = (
return rawResponse.map((track) => ({
name: track.name,
artist: track.artists.map((artist) => artist.name).join(", "),
href: track.href,
href: track.external_urls.spotify,
album: track.album.name,
image: track.album.images[1],
}));
Expand Down

0 comments on commit f8dd7bd

Please # to comment.