

I'm developing react typescript pro. & trying to call onclick event with two API functions. I'm getting errors like status 500.
in that event, the second function is calling first, instead of the first function. even I have used async/await, also getting the same issue with async/await