Merge pull request #18 from Pear-Trading/finn/ValidationFix

Fixed Transaction Validation
This commit is contained in:
Finn 2017-09-18 14:08:36 +01:00 committed by GitHub
commit 78af694c04

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{