From 559efb8ebf8ed6732b1040622385d85d40a990e4 Mon Sep 17 00:00:00 2001 From: Lance Finney Date: Tue, 24 Sep 2024 01:58:11 -0500 Subject: [PATCH] fix: correct a typo (#1126) --- .../signal/56-forms-and-signal/src/app/order.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/signal/56-forms-and-signal/src/app/order.component.ts b/apps/signal/56-forms-and-signal/src/app/order.component.ts index 8af8598..81a20d8 100644 --- a/apps/signal/56-forms-and-signal/src/app/order.component.ts +++ b/apps/signal/56-forms-and-signal/src/app/order.component.ts @@ -33,7 +33,7 @@ import { products } from './products';
SubTotal
-
{{ totalWihoutVat() }} €
+
{{ totalWithoutVat() }} €
VAT (21%)
@@ -66,7 +66,7 @@ export default class OrderComponent { quantity = toSignal(this.form.controls.quantity.valueChanges, { initialValue: this.form.getRawValue().quantity, }); - totalWihoutVat = computed(() => Number(this.price()) * this.quantity()); - vat = computed(() => this.totalWihoutVat() * 0.21); - total = computed(() => this.totalWihoutVat() + this.vat()); + totalWithoutVat = computed(() => Number(this.price()) * this.quantity()); + vat = computed(() => this.totalWithoutVat() * 0.21); + total = computed(() => this.totalWithoutVat() + this.vat()); }