Fixed Transaction Validation

This commit is contained in:
piratefinn 2017-09-18 13:58:38 +01:00
parent 7f3e9f4fd0
commit d1eb79b394

View file

@ -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{