From d515bf0eb46f4d52d671fb563bba6144f7cc1632 Mon Sep 17 00:00:00 2001 From: rynomster Date: Sat, 30 Sep 2017 22:47:11 +0200 Subject: [PATCH] inline --- src/app/wallet/send/send.component.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/app/wallet/send/send.component.ts b/src/app/wallet/send/send.component.ts index 7a7286b0d..52a95e7cc 100644 --- a/src/app/wallet/send/send.component.ts +++ b/src/app/wallet/send/send.component.ts @@ -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. */