From 4428dad7650bd771e19c66d91acadf99ec5b4b6f Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Thu, 3 Oct 2024 09:28:47 +0700 Subject: [PATCH] fix: function name --- src/pages/05_quotation/form.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/05_quotation/form.ts b/src/pages/05_quotation/form.ts index 2a018ecc..a971e4c0 100644 --- a/src/pages/05_quotation/form.ts +++ b/src/pages/05_quotation/form.ts @@ -52,7 +52,7 @@ export const useQuotationForm = defineStore('form-quotation', () => { return JSON.stringify(resetData) !== JSON.stringify(currData); } - function submitEmployee(data: EmployeeWorker) { + function injectNewEmployee(data: EmployeeWorker) { currentFormData.value.worker.push({ alienReferencNumber: data.alienReferencNumber, documentExpireDate: data.documentExpireDate, @@ -72,6 +72,6 @@ export const useQuotationForm = defineStore('form-quotation', () => { return { currentFormData, - submitEmployee, + injectNewEmployee, }; });