diff --git a/src/client/src/orangehrmPimPlugin/pages/employee/EmployeePersonalDetails.vue b/src/client/src/orangehrmPimPlugin/pages/employee/EmployeePersonalDetails.vue index eb6a59c..31e8f1b 100644 --- a/src/client/src/orangehrmPimPlugin/pages/employee/EmployeePersonalDetails.vue +++ b/src/client/src/orangehrmPimPlugin/pages/employee/EmployeePersonalDetails.vue @@ -339,7 +339,7 @@ export default { .request({ method: 'PUT', data: { - lastName: this.employee.lastName.length > 0 ? this.employee.lastName : ' ', + lastName: this.employee.lastName === '' ? ' ' : this.employee.lastName, firstName: this.employee.firstName, middleName: this.employee.middleName, employeeId: this.employee.employeeId,