From e9a0feb9e909d59b9945fd367231cc4e47327873 Mon Sep 17 00:00:00 2001 From: brunobar79 Date: Fri, 3 Aug 2018 20:11:46 -0400 Subject: fixed issue with input --- ui/app/components/ens-input.js | 1 + ui/app/components/send/send.component.js | 5 +++-- ui/app/components/send/send.container.js | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'ui/app') diff --git a/ui/app/components/ens-input.js b/ui/app/components/ens-input.js index cfdf663a5..ab37306d2 100644 --- a/ui/app/components/ens-input.js +++ b/ui/app/components/ens-input.js @@ -27,6 +27,7 @@ function EnsInput () { } EnsInput.prototype.onChange = function (recipient) { + debugger const network = this.props.network const networkHasEnsSupport = getNetworkEnsSupport(network) diff --git a/ui/app/components/send/send.component.js b/ui/app/components/send/send.component.js index 80b50fad4..0d8ffd179 100644 --- a/ui/app/components/send/send.component.js +++ b/ui/app/components/send/send.component.js @@ -39,6 +39,7 @@ export default class SendTransactionScreen extends PersistentForm { updateSendErrors: PropTypes.func, updateSendTokenBalance: PropTypes.func, scanQrCode: PropTypes.func, + qrCodeDetected: PropTypes.func, qrCodeData: PropTypes.object, }; @@ -54,8 +55,8 @@ export default class SendTransactionScreen extends PersistentForm { if (currentAddress !== scannedAddress) { this.props.updateSendTo(scannedAddress) this.updateGas({ to: scannedAddress }) - - // Here we should clear props.qrCodeData + // Clean up QR code data after handling + this.props.qrCodeDetected(null) } } } diff --git a/ui/app/components/send/send.container.js b/ui/app/components/send/send.container.js index 25abb706c..41735de64 100644 --- a/ui/app/components/send/send.container.js +++ b/ui/app/components/send/send.container.js @@ -29,6 +29,7 @@ import { updateGasData, setGasTotal, showQrScanner, + qrCodeDetected, } from '../../actions' import { resetSendState, @@ -98,6 +99,7 @@ function mapDispatchToProps (dispatch) { updateSendErrors: newError => dispatch(updateSendErrors(newError)), resetSendState: () => dispatch(resetSendState()), scanQrCode: () => dispatch(showQrScanner(SEND_ROUTE)), + qrCodeDetected: (data) => dispatch(qrCodeDetected(data)), updateSendTo: (to, nickname) => dispatch(updateSendTo(to, nickname)), } } -- cgit