aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-02-28 10:33:33 +0800
committerDan Finlay <dan@danfinlay.com>2017-02-28 10:33:33 +0800
commit3ddfdfff98806065291bb39f31d73879aa4939e8 (patch)
treebcd44c662a60d043b7c278608574caac70d65587 /ui/app/components
parent2e80e8f722e60573764cddfea0b66739626f717a (diff)
downloadtangerine-wallet-browser-3ddfdfff98806065291bb39f31d73879aa4939e8.tar
tangerine-wallet-browser-3ddfdfff98806065291bb39f31d73879aa4939e8.tar.gz
tangerine-wallet-browser-3ddfdfff98806065291bb39f31d73879aa4939e8.tar.bz2
tangerine-wallet-browser-3ddfdfff98806065291bb39f31d73879aa4939e8.tar.lz
tangerine-wallet-browser-3ddfdfff98806065291bb39f31d73879aa4939e8.tar.xz
tangerine-wallet-browser-3ddfdfff98806065291bb39f31d73879aa4939e8.tar.zst
tangerine-wallet-browser-3ddfdfff98806065291bb39f31d73879aa4939e8.zip
Emit updated tx values on accept click
Diffstat (limited to 'ui/app/components')
-rw-r--r--ui/app/components/pending-tx-details.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/app/components/pending-tx-details.js b/ui/app/components/pending-tx-details.js
index 778651d61..1e6299902 100644
--- a/ui/app/components/pending-tx-details.js
+++ b/ui/app/components/pending-tx-details.js
@@ -253,6 +253,13 @@ PTXP.componentDidUpdate = function (prevProps, prevState) {
state.gasPrice !== prevState.gasPrice)) {
log.debug(`recalculating gas since prev state change: ${JSON.stringify({ prevState, state })}`)
this.calculateGas()
+
+ // Otherwise this was a recalculation,
+ // so we should inform the parent:
+ } else {
+ if (this.props.onTxChange) {
+ this.props.onTxChange(this.gatherParams)
+ }
}
}