aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/modals/transaction-details
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/modals/transaction-details')
-rw-r--r--ui/app/components/modals/transaction-details/transaction-details.component.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/ui/app/components/modals/transaction-details/transaction-details.component.js b/ui/app/components/modals/transaction-details/transaction-details.component.js
index 7eec028fe..ef438d01f 100644
--- a/ui/app/components/modals/transaction-details/transaction-details.component.js
+++ b/ui/app/components/modals/transaction-details/transaction-details.component.js
@@ -18,15 +18,20 @@ export default class TransactionConfirmed extends PureComponent {
showCancel: PropTypes.bool,
}
+ handleSubmit = () => {
+ this.props.hideModal()
+ }
+
render () {
const { t } = this.context
- const { transaction, onRetry, showRetry, onCancel, showCancel, hideModal } = this.props
+ const { transaction, onRetry, showRetry, onCancel, showCancel } = this.props
const { txParams: { nonce } = {} } = transaction
const decimalNonce = nonce && hexToDecimal(nonce)
return (
<Modal
- onSubmit={() => hideModal()}
+ onSubmit={this.handleSubmit}
+ onClose={this.handleSubmit}
submitText={t('ok')}
headerText={t('transactionWithNonce', [`#${decimalNonce}`])}
>