Skip to content

Commit

Permalink
fix: typescript error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dun-sin committed Aug 23, 2024
1 parent ac6412a commit 4010e17
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/components/DiscoverTracks/SubmitButtion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,10 @@ const SubmitButtion = () => {
setLoadingMessage(`Getting all Artist's In The Playlist`);
const trackArtists = playlistTracks
.flat()
.map((item) => item.track.artists.slice(0, 2));
const artistNames = trackArtists.flat().map((item) => item.name);
.map((item: any) => item.track.artists.slice(0, 2));
const artistNames: string[] = trackArtists
.flat()
.map((item: any) => item.name);
const uniqueArtistNames = [...new Set(artistNames)];

getSimilarArtists(uniqueArtistNames);
Expand Down

0 comments on commit 4010e17

Please sign in to comment.