Skip to content

Commit

Permalink
LikeButton smooth
Browse files Browse the repository at this point in the history
  • Loading branch information
greybluesea committed Sep 15, 2023
1 parent a72a896 commit 2360fe9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/components/LikeButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 54,7 @@ const LikeButton = ({ songId }: LikeButtonProps) => {

if (!res.error && res.data)
isCurrentSong ? setCurrentSongIsLiked(true) : setIsLiked(true);
else isCurrentSong ? setCurrentSongIsLiked(false) : setIsLiked(false);
};

fetchLikeData();
Expand Down

0 comments on commit 2360fe9

Please sign in to comment.