fix: function name

This commit is contained in:
Methapon Metanipat 2024-10-03 09:28:47 +07:00
parent 5c978fd8f3
commit 4428dad765

View file

@ -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,
};
});