From e3a8780da7a888401811dda13cba4555a6c94ce3 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Fri, 21 Jul 2017 18:23:41 +0200 Subject: [PATCH] Check QR before lowercase (#6119) --- 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; }