Skip to content

Commit

Permalink
inline
Browse files Browse the repository at this point in the history
  • Loading branch information
rynomster committed Sep 30, 2017
1 parent 524725a commit d515bf0
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/app/wallet/send/send.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,8 @@ export class SendComponent {

/** checkAddres: returns boolean, so it can be private later. */
checkAddress(): boolean {
// use default transferBalance address.
if(this.type === 'balanceTransfer' && !this.send.toAddress) {
return true;
// custom address
} else {
return this.send.validAddress;
}
// use default transferBalance address or custom address.
return (this.type === 'balanceTransfer' && !this.send.toAddress) || this.send.validAddress;
}

/** verifyAddress: calls RPC to validate it. */
Expand Down

0 comments on commit d515bf0

Please sign in to comment.