diff --git a/ui/app/pages/confirm-transaction/confirm-transaction.component.js b/ui/app/pages/confirm-transaction/confirm-transaction.component.js index c8819dac3..9e7b01baf 100644 --- a/ui/app/pages/confirm-transaction/confirm-transaction.component.js +++ b/ui/app/pages/confirm-transaction/confirm-transaction.component.js @@ -41,11 +41,6 @@ export default class ConfirmTransaction extends Component { isTokenMethodAction: PropTypes.bool, } - getParamsTransactionId () { - const { match: { params: { id } = {} } } = this.props - return id || null - } - componentDidMount () { const { totalUnapprovedCount = 0, @@ -70,7 +65,8 @@ export default class ConfirmTransaction extends Component { if (isTokenMethodAction) { getTokenParams(to) } - this.props.setTransactionToConfirm(transactionId || paramsTransactionId) + const txId = transactionId || paramsTransactionId + if (txId) this.props.setTransactionToConfirm(txId) } componentDidUpdate (prevProps) {