Merge pull request #18 from Pear-Trading/finn/ValidationFix
Fixed Transaction Validation
This commit is contained in:
commit
78af694c04
1 changed files with 2 additions and 1 deletions
|
@ -151,7 +151,8 @@ export class AddDataComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
transactionFormValidate() {
|
transactionFormValidate() {
|
||||||
if( this.submitOrg.name.length == 0 &&
|
if( this.submitOrg.name.length == 0 ||
|
||||||
|
this.submitOrg.town.length == 0 ||
|
||||||
this.amount == 0 ) {
|
this.amount == 0 ) {
|
||||||
this.transactionFormInvalid = true;
|
this.transactionFormInvalid = true;
|
||||||
}else{
|
}else{
|
||||||
|
|
Reference in a new issue