Clear error when success

This commit is contained in:
pepper 2021-01-18 01:45:26 -05:00
parent 48a314ae84
commit 7145157622

View File

@ -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))