Skip to content

Commit

Permalink
Merge pull request #159 from particl/fix/smallbugs
Browse files Browse the repository at this point in the history
amount > 0
  • Loading branch information
rynomster committed Oct 12, 2017
2 parents a27d50c + 2680de8 commit e4bc57b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/wallet/send/send.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ export class SendComponent {
verifyAmount() {

if (this.send.amount === undefined || +this.send.amount === 0 || this.send.input === '' || this.send.amount === null) {

this.send.validAmount = undefined;
return;
}
Expand All @@ -113,8 +112,9 @@ export class SendComponent {
this.send.validAmount = false;
return;
}

this.send.validAmount = this.send.amount <= this.getBalance(this.send.input);
// is amount in range of 0...CurrentBalance
this.send.validAmount = (this.send.amount <= this.getBalance(this.send.input)
&& this.send.amount > 0);
}

/** checkAddres: returns boolean, so it can be private later. */
Expand Down

0 comments on commit e4bc57b

Please sign in to comment.