Fixed Transaction Validation
This commit is contained in:
parent
7f3e9f4fd0
commit
d1eb79b394
1 changed files with 2 additions and 1 deletions
|
@ -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{
|
||||
|
|
Reference in a new issue