mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
parent
fe2d053435
commit
2306dbd75e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user