From f5c0a7603224ec37f43945951dea37cbdf3a6f9f Mon Sep 17 00:00:00 2001 From: piratefinn Date: Mon, 5 Mar 2018 13:42:28 +0000 Subject: [PATCH] amended if code and validation --- src/app/dashboard/add-data.component.html | 12 ++++++------ src/app/dashboard/add-data.component.ts | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app/dashboard/add-data.component.html b/src/app/dashboard/add-data.component.html index 46396fb..01789d7 100644 --- a/src/app/dashboard/add-data.component.html +++ b/src/app/dashboard/add-data.component.html @@ -48,29 +48,29 @@
- +
- +
- +
- +
- +
- +
diff --git a/src/app/dashboard/add-data.component.ts b/src/app/dashboard/add-data.component.ts index caf91e7..0bedfb4 100644 --- a/src/app/dashboard/add-data.component.ts +++ b/src/app/dashboard/add-data.component.ts @@ -178,7 +178,7 @@ export class AddDataComponent implements OnInit { this.submitOrg.town.length === 0 || this.amount === 0 || this.recurringPurchase && - this.recurringType === 0) { + !this.recurringType) { this.transactionFormInvalid = true; } else { this.transactionFormInvalid = false;