|
|
@ -54,6 +54,8 @@ function TxListItem () { |
|
|
|
fiatTotal: null, |
|
|
|
fiatTotal: null, |
|
|
|
isTokenTx: null, |
|
|
|
isTokenTx: null, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.unmounted = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
TxListItem.prototype.componentDidMount = async function () { |
|
|
|
TxListItem.prototype.componentDidMount = async function () { |
|
|
@ -67,9 +69,16 @@ TxListItem.prototype.componentDidMount = async function () { |
|
|
|
? await this.getSendTokenTotal() |
|
|
|
? await this.getSendTokenTotal() |
|
|
|
: this.getSendEtherTotal() |
|
|
|
: this.getSendEtherTotal() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.unmounted) { |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
this.setState({ total, fiatTotal, isTokenTx }) |
|
|
|
this.setState({ total, fiatTotal, isTokenTx }) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TxListItem.prototype.componentWillUnmount = function () { |
|
|
|
|
|
|
|
this.unmounted = true |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
TxListItem.prototype.getAddressText = function () { |
|
|
|
TxListItem.prototype.getAddressText = function () { |
|
|
|
const { |
|
|
|
const { |
|
|
|
address, |
|
|
|
address, |
|
|
|