handle save some data and send server correct & change component form & clean code & fix bugs
This commit is contained in:
@@ -16,17 +16,12 @@ function SendAppo({ hour }) {
|
||||
doctor_id: doctorId,
|
||||
slot: hour,
|
||||
})
|
||||
.then((res) => {
|
||||
.then(() => {
|
||||
setLoading(false);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
.catch(() => {
|
||||
//
|
||||
});
|
||||
// if (locateVisit) {
|
||||
// setStep((prev) => prev + 1);
|
||||
// } else {
|
||||
// setIsError(true);
|
||||
// }
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user