diff options
author | Jonathan Smirnoff <7558841+jonathansmirnoff@users.noreply.github.com> | 2019-02-14 04:30:46 +0800 |
---|---|---|
committer | Frankie <frankie.diamond@gmail.com> | 2019-02-14 04:30:46 +0800 |
commit | 8dddf48904323d47685516ccc76f9e267dbd188a (patch) | |
tree | 3e1c11920da2be888271e4bc48d8dce61e64b944 /ui/app/components/qr-code.js | |
parent | f7ab4577f637dd9e96cec0f08848bc70c489f9d3 (diff) | |
download | tangerine-wallet-browser-8dddf48904323d47685516ccc76f9e267dbd188a.tar.gz tangerine-wallet-browser-8dddf48904323d47685516ccc76f9e267dbd188a.tar.zst tangerine-wallet-browser-8dddf48904323d47685516ccc76f9e267dbd188a.zip |
Fixed issue #5838 (#6001)
Update changelog file
Diffstat (limited to 'ui/app/components/qr-code.js')
-rw-r--r-- | ui/app/components/qr-code.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/components/qr-code.js b/ui/app/components/qr-code.js index d3242ddf5..1c07e244c 100644 --- a/ui/app/components/qr-code.js +++ b/ui/app/components/qr-code.js @@ -25,8 +25,8 @@ function QrCodeView () { QrCodeView.prototype.render = function () { const props = this.props - const { message, data } = props.Qr - const address = `${isHexPrefixed(data) ? 'ethereum:' : ''}${checksumAddress(data)}` + const { message, data, network } = props.Qr + const address = `${isHexPrefixed(data) ? 'ethereum:' : ''}${checksumAddress(data, network)}` const qrImage = qrCode(4, 'M') qrImage.addData(address) qrImage.make() @@ -51,7 +51,7 @@ QrCodeView.prototype.render = function () { h(ReadOnlyInput, { wrapperClass: 'ellip-address-wrapper', inputClass: 'qr-ellip-address', - value: checksumAddress(data), + value: checksumAddress(data, network), }), ]) } |