Chore: Just made it look nicer
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user