From f215f7f9d8c695c8f71bff0566e385f9bd8c8dc0 Mon Sep 17 00:00:00 2001 From: mariia Date: Mon, 12 Aug 2024 12:42:05 -0700 Subject: [PATCH] Fixing loading delay for History section --- src/Playlist.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Playlist.js b/src/Playlist.js index ed113bb..89d7207 100644 --- a/src/Playlist.js +++ b/src/Playlist.js @@ -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 = () => { @@ -189,4 +185,4 @@ const Playlist = () => { ); }; -export default Playlist; +export default Playlist; \ No newline at end of file