HackYourFuture-CPH / simply-name.it

Final Project for Class17
MIT License
3 stars 1 forks source link

Backend: Fix first Candidate not added/deleted without reload #280

Open senner007 opened 3 years ago

senner007 commented 3 years ago

User story

Who: As a user What: I want to see the candidates added and removed immediately Why: so that reloading of the page is not necessary

Issue: The context state is never changed to false in useCandidates if there are no candidates to retrieve

Implementation fix details: Change the candidates get route to not return 404 when there are no candidates but instead return an empty array.