diff --git a/ui/app/components/ui/qr-code/qr-code.js b/ui/app/components/ui/qr-code/qr-code.js index e81822130..b8990186e 100644 --- a/ui/app/components/ui/qr-code/qr-code.js +++ b/ui/app/components/ui/qr-code/qr-code.js @@ -9,15 +9,17 @@ import { checksumAddress } from '../../../helpers/utils/util' export default connect(mapStateToProps)(QrCodeView) function mapStateToProps(state) { + const { buyView, warning } = state.appState return { // Qr code is not fetched from state. 'message' and 'data' props are passed instead. - buyView: state.appState.buyView, - warning: state.appState.warning, + buyView, + warning, } } function QrCodeView(props) { - const { message, data } = props.Qr + const { Qr, warning } = props + const { message, data } = Qr const address = `${isHexPrefixed(data) ? 'ethereum:' : ''}${checksumAddress( data, )}` @@ -29,7 +31,7 @@ function QrCodeView(props) {