Skip to content

Commit 559efb8

Browse files
authored
fix: correct a typo (tomalaforge#1126)
1 parent 43960d1 commit 559efb8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/signal/56-forms-and-signal/src/app/order.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { products } from './products';
3333
</form>
3434
<div class="flex justify-between">
3535
<div>SubTotal</div>
36-
<div>{{ totalWihoutVat() }} €</div>
36+
<div>{{ totalWithoutVat() }} €</div>
3737
</div>
3838
<div class="flex justify-between">
3939
<div>VAT (21%)</div>
@@ -66,7 +66,7 @@ export default class OrderComponent {
6666
quantity = toSignal(this.form.controls.quantity.valueChanges, {
6767
initialValue: this.form.getRawValue().quantity,
6868
});
69-
totalWihoutVat = computed(() => Number(this.price()) * this.quantity());
70-
vat = computed(() => this.totalWihoutVat() * 0.21);
71-
total = computed(() => this.totalWihoutVat() + this.vat());
69+
totalWithoutVat = computed(() => Number(this.price()) * this.quantity());
70+
vat = computed(() => this.totalWithoutVat() * 0.21);
71+
total = computed(() => this.totalWithoutVat() + this.vat());
7272
}

0 commit comments

Comments
 (0)