aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/ens-input.js1
-rw-r--r--ui/app/components/send/send.component.js5
-rw-r--r--ui/app/components/send/send.container.js2
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)),
}
}