From d1eb79b3948d2ace612bc86cd6bf00faefe901f9 Mon Sep 17 00:00:00 2001 From: piratefinn Date: Mon, 18 Sep 2017 13:58:38 +0100 Subject: [PATCH] Fixed Transaction Validation --- src/app/dashboard/add-data.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/dashboard/add-data.component.ts b/src/app/dashboard/add-data.component.ts index 75b9a28..f8c31e6 100644 --- a/src/app/dashboard/add-data.component.ts +++ b/src/app/dashboard/add-data.component.ts @@ -151,7 +151,8 @@ export class AddDataComponent { } transactionFormValidate() { - if( this.submitOrg.name.length == 0 && + if( this.submitOrg.name.length == 0 || + this.submitOrg.town.length == 0 || this.amount == 0 ) { this.transactionFormInvalid = true; }else{