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{