aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/app/components/pending-tx.js3
-rw-r--r--ui/app/conf-tx.js1
2 files changed, 3 insertions, 1 deletions
diff --git a/ui/app/components/pending-tx.js b/ui/app/components/pending-tx.js
index 75004b208..6753fc098 100644
--- a/ui/app/components/pending-tx.js
+++ b/ui/app/components/pending-tx.js
@@ -286,8 +286,9 @@ PendingTx.prototype.render = function () {
: null,
h('button', {
- onClick: () => {
+ onClick: (event) => {
this.resetGasFields()
+ event.preventDefault()
},
}, 'Reset'),
diff --git a/ui/app/conf-tx.js b/ui/app/conf-tx.js
index ce7422f9c..83e2c7482 100644
--- a/ui/app/conf-tx.js
+++ b/ui/app/conf-tx.js
@@ -180,6 +180,7 @@ ConfirmTxScreen.prototype.sendTransaction = function (txData, event) {
ConfirmTxScreen.prototype.cancelTransaction = function (txData, event) {
this.stopPropagation(event)
+ event.preventDefault()
this.props.dispatch(actions.cancelTx(txData))
}