From 79abde86294c9faae322a350dc5c2bb67cf247d0 Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Tue, 8 Apr 2025 15:29:57 +0700 Subject: [PATCH] refactor: handle show name en --- src/pages/05_quotation/QuotationForm.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/05_quotation/QuotationForm.vue b/src/pages/05_quotation/QuotationForm.vue index 7e23d7b0..3322cf0d 100644 --- a/src/pages/05_quotation/QuotationForm.vue +++ b/src/pages/05_quotation/QuotationForm.vue @@ -164,7 +164,9 @@ const selectedWorkerItem = computed(() => { employeeName: locale.value === Lang.English ? `${e.firstNameEN} ${e.lastNameEN}` - : `${e.firstName} ${e.lastName}`, + : e.firstName + ? `${e.firstName} ${e.lastName}` + : `${e.firstNameEN} ${e.lastNameEN}`, birthDate: dateFormatJS({ date: e.dateOfBirth }), gender: e.gender, age: calculateAge(e.dateOfBirth),