fix: typo

This commit is contained in:
Methapon Metanipat 2024-10-16 13:10:40 +07:00
parent af4f875771
commit 5ee4deda98

View file

@ -142,7 +142,7 @@ const formDataCustomerBranch = ref<
}
>(structuredClone(CUSTOMER_BRANCH_DEFAULT));
function setDefaultCustomerd() {
function setDefaultCustomer() {
formDataCustomerBranch.value = structuredClone(CUSTOMER_BRANCH_DEFAULT);
}
@ -170,7 +170,7 @@ async function triggerDialogDeleteQuottaion(id: string) {
}
function triggerCreateCustomerd(opts: { type: 'CORP' | 'PERS' }) {
setDefaultCustomerd();
setDefaultCustomer();
customerFormState.value.dialogType = 'create';
customerFormData.value.customerType = opts?.type;
customerFormState.value.dialogModal = true;
@ -810,7 +810,7 @@ watch(() => pageState.currentTab, fetchQuotationList);
() => {
customerFormState.dialogModal = false;
customerFormStore.resetForm(true);
setDefaultCustomerd();
setDefaultCustomer();
}
"
>