From 8f75042feee10ddf0c2bd91378628b7f323a5b45 Mon Sep 17 00:00:00 2001 From: Arkadiy Paronyan Date: Fri, 21 Jul 2017 19:02:04 +0200 Subject: [PATCH] Check QR before lowercase (#6119) (#6120) --- js/src/modals/CreateAccount/store.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/src/modals/CreateAccount/store.js b/js/src/modals/CreateAccount/store.js index ab9879b8d..cc2160ab9 100644 --- a/js/src/modals/CreateAccount/store.js +++ b/js/src/modals/CreateAccount/store.js @@ -120,7 +120,6 @@ export default class Store { } @computed get qrAddressValid () { - console.log('qrValid', this.qrAddress, this._api.util.isAddressValid(this.qrAddress)); return this._api.util.isAddressValid(this.qrAddress); } @@ -191,7 +190,7 @@ export default class Store { } // FIXME: Current native signer encoding is not 100% for EIP-55, lowercase for now - this.qrAddress = this._api.util + this.qrAddress = qrAddress && this._api.util ? this._api.util.toChecksumAddress(qrAddress.toLowerCase()) : qrAddress; }