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,
|
isTokenMethodAction: PropTypes.bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
getParamsTransactionId () {
|
|
||||||
const { match: { params: { id } = {} } } = this.props
|
|
||||||
return id || null
|
|
||||||
}
|
|
||||||
|
|
||||||
componentDidMount () {
|
componentDidMount () {
|
||||||
const {
|
const {
|
||||||
totalUnapprovedCount = 0,
|
totalUnapprovedCount = 0,
|
||||||
@ -70,7 +65,8 @@ export default class ConfirmTransaction extends Component {
|
|||||||
if (isTokenMethodAction) {
|
if (isTokenMethodAction) {
|
||||||
getTokenParams(to)
|
getTokenParams(to)
|
||||||
}
|
}
|
||||||
this.props.setTransactionToConfirm(transactionId || paramsTransactionId)
|
const txId = transactionId || paramsTransactionId
|
||||||
|
if (txId) this.props.setTransactionToConfirm(txId)
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidUpdate (prevProps) {
|
componentDidUpdate (prevProps) {
|
||||||
|
Loading…
Reference in New Issue
Block a user