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