Clear error when success
This commit is contained in:
parent
48a314ae84
commit
7145157622
@ -71,6 +71,7 @@ export const CPanelBooking = () => {
|
||||
// console.log(response);
|
||||
// add function here
|
||||
setRespID(response.data.id)
|
||||
setError(0)
|
||||
})
|
||||
.catch(function (error) {
|
||||
setError(buildErrorStringFromArray(error.response.data))
|
||||
|
||||
Reference in New Issue
Block a user