diff --git a/src/components/03_customer-management/FormEmployeeVisa.vue b/src/components/03_customer-management/FormEmployeeVisa.vue index 24169bc2..38eb3095 100644 --- a/src/components/03_customer-management/FormEmployeeVisa.vue +++ b/src/components/03_customer-management/FormEmployeeVisa.vue @@ -60,8 +60,9 @@ function calculate90DayNext(currentDate: Date | null | string) { if (currentDate === null) return null; const date = - typeof currentDate === 'string' ? new Date(currentDate) : currentDate; - + typeof currentDate === 'string' + ? new Date(currentDate) + : new Date(currentDate.getTime()); date.setDate(date.getDate() + 90); return date; @@ -122,8 +123,6 @@ watch(