Browse Source

fix: compilation error TS2870: 'This binary expression is never nullish. Are you missing parentheses?'

pull/4152/head
Karel De Smet 8 months ago
parent
commit
a45a17b32c
  1. 4
      apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.component.ts

4
apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.component.ts

@ -216,12 +216,12 @@ export class CreateOrUpdateActivityDialog implements OnDestroy {
this.total = this.total =
this.activityForm.get('quantity').value * this.activityForm.get('quantity').value *
this.activityForm.get('unitPrice').value + this.activityForm.get('unitPrice').value +
this.activityForm.get('fee').value ?? 0; (this.activityForm.get('fee').value ?? 0);
} else { } else {
this.total = this.total =
this.activityForm.get('quantity').value * this.activityForm.get('quantity').value *
this.activityForm.get('unitPrice').value - this.activityForm.get('unitPrice').value -
this.activityForm.get('fee').value ?? 0; (this.activityForm.get('fee').value ?? 0);
} }
this.changeDetectorRef.markForCheck(); this.changeDetectorRef.markForCheck();

Loading…
Cancel
Save