Chore: Just made it look nicer

This commit is contained in:
2023-08-05 08:05:14 +05:30
parent 7843acea28
commit 9ad411af65
5 changed files with 17 additions and 17 deletions
@@ -129,8 +129,8 @@ export class EmployeeDetailComponent implements OnInit, AfterViewInit {
const formValue = this.form.value;
this.item.name = formValue.name ?? '';
this.item.designation = formValue.designation ?? '';
this.item.salary = +(formValue.salary ?? '0');
this.item.points = +(formValue.points ?? '0');
this.item.salary = Number(formValue.salary);
this.item.points = Number(formValue.points);
this.item.isActive = formValue.isActive ?? true;
this.item.costCentre.id = formValue.costCentre ?? '';
this.item.joiningDate = moment(formValue.joiningDate).format('DD-MMM-YYYY');