I completed the Jamming project and was able to build it with surge. Here is the link to App:
My issue is that after a user authenticates their Spotify account and then refreshes the page, the first search results in a list of songs that then vanishes(even the tracks added to playlist) when I search for the second time. All of the songs show up as they should from there on out. Only after a user refreshes the page and tries to search again does stuff vanish or the page refreshes itself. Even when I try to save the playlist the page refreshes and nothing happens.
I have checked the entire code and was unable to figure it out.
Is there a way to avoid it?