Skip to content

Commit

Permalink
Merge pull request #3 from abecerrilsalas/Monday
Browse files Browse the repository at this point in the history
Fixing loading delay for History section
  • Loading branch information
abecerrilsalas authored Aug 12, 2024
2 parents ece72dc + f215f7f commit 3333282
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/Playlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,8 @@ const Playlist = () => {
const handleSelectRequest = (request) => {
setCurrentSpotifyLink(request.spotifyLink);
setCurrentDescription(request.description);
setShowPlaylist(false);
setLoading(true);
setTimeout(() => {
setLoading(false);
setShowPlaylist(true);
}, 5000);
setShowPlaylist(true);
setLoading(false);
};

const navigateToAbout = () => {
Expand Down Expand Up @@ -189,4 +185,4 @@ const Playlist = () => {
);
};

export default Playlist;
export default Playlist;

0 comments on commit 3333282

Please sign in to comment.