This commit is contained in:
Warunee Tamkoo 2024-02-12 11:21:47 +07:00
parent c161c0b332
commit 853a78f139

View file

@ -172,9 +172,9 @@ const calculateMaxDate = () => {
//
const calRetire = async (birth: Date) => {
const body = {
birthDate: dateToPost(birth),
birthDate: dateToISO(birth),
};
if (dateToISO(dateBefore.value) > dateToPost(birth)) {
if (dateToISO(dateBefore.value) > dateToISO(birth)) {
// showLoader();
await http
.post(config.API.profileCalRetire, body)
@ -185,11 +185,11 @@ const calRetire = async (birth: Date) => {
changeRetireText(data.retireDate);
dateBefore.value = birth;
})
// .catch((e: any) => {
// messageError($q, e);
// informaData.value.birthDate = null;
// informaData.value.age = "";
// })
.catch((e: any) => {
messageError($q, e);
informaData.value.birthDate = null;
informaData.value.age = "";
})
.finally(() => {
// hideLoader();
});