Skip to content

Commit

Permalink
removing incorrect code
Browse files Browse the repository at this point in the history
  • Loading branch information
preronaghosh committed Mar 28, 2024
1 parent 37859a3 commit d28f5c6
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/components/SearchCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,6 @@ const SearchCard = ({ user }) => {
// shared playlists handlers
const handleAddPlaylist = async () => {
setViewPlaylistDialog(true);
try {
const res = await axios.post(`${process.env.REACT_APP_API_LOCAL}/followUser`, {
playlist_name: "",
createdByEmail: "",
sharedWithUsername : ""
},
{
withCredentials: true
});
} catch (err) {
console.error("Failed to create a new playlist", err);
}
};

return (
Expand Down

0 comments on commit d28f5c6

Please sign in to comment.