Closed NatsGt closed 2 years ago
We're using
async
almost everywhere now. I think it'd be better to standardize on that and remove thePromise
resolution here. Also, any error will be caught at the error boundary anyway, right? Or do you want to catch it here?
Please note that using async/await syntax also returns Promise objects. The good thing about using async/await is that it is ubiquitous across languages even though the implementation underneath differs slightly.
Made a change to return data from fetch method since the response.json throws an error if the method is not get.
Description
Replaced postData fetch method with global fetchFromDb
Fixes #282
How to test?
Add candidates on a board
Checklist