From a45a17b32c1bc2a4986fa1e077c8e7f843d9955f Mon Sep 17 00:00:00 2001 From: Karel De Smet Date: Sat, 28 Dec 2024 06:54:03 +0100 Subject: [PATCH] fix: compilation error TS2870: 'This binary expression is never nullish. Are you missing parentheses?' --- .../create-or-update-activity-dialog.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.component.ts b/apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.component.ts index 6f9234d69..506a46a31 100644 --- a/apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.component.ts +++ b/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.activityForm.get('quantity').value * this.activityForm.get('unitPrice').value + - this.activityForm.get('fee').value ?? 0; + (this.activityForm.get('fee').value ?? 0); } else { this.total = this.activityForm.get('quantity').value * this.activityForm.get('unitPrice').value - - this.activityForm.get('fee').value ?? 0; + (this.activityForm.get('fee').value ?? 0); } this.changeDetectorRef.markForCheck();