aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pending-tx-details.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/pending-tx-details.js')
-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)
+ }
}
}