diff options
author | brunobar79 <brunobar79@gmail.com> | 2018-08-04 08:11:46 +0800 |
---|---|---|
committer | brunobar79 <brunobar79@gmail.com> | 2018-08-04 08:11:46 +0800 |
commit | e9a0feb9e909d59b9945fd367231cc4e47327873 (patch) | |
tree | 0df7a71fc8c665a3cc41fbc2d5ea5e333159c158 /ui/app | |
parent | af97ba103cea6e9f5e114d916f920b28d96d4e8a (diff) | |
download | tangerine-wallet-browser-e9a0feb9e909d59b9945fd367231cc4e47327873.tar tangerine-wallet-browser-e9a0feb9e909d59b9945fd367231cc4e47327873.tar.gz tangerine-wallet-browser-e9a0feb9e909d59b9945fd367231cc4e47327873.tar.bz2 tangerine-wallet-browser-e9a0feb9e909d59b9945fd367231cc4e47327873.tar.lz tangerine-wallet-browser-e9a0feb9e909d59b9945fd367231cc4e47327873.tar.xz tangerine-wallet-browser-e9a0feb9e909d59b9945fd367231cc4e47327873.tar.zst tangerine-wallet-browser-e9a0feb9e909d59b9945fd367231cc4e47327873.zip |
fixed issue with input
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/components/ens-input.js | 1 | ||||
-rw-r--r-- | ui/app/components/send/send.component.js | 5 | ||||
-rw-r--r-- | ui/app/components/send/send.container.js | 2 |
3 files changed, 6 insertions, 2 deletions
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)), } } |