Return back updates for updateTokenInfo func

This commit is contained in:
Victor Baranov 2018-11-09 17:39:42 +03:00
parent c3156d06ba
commit 948d428c81
1 changed files with 3 additions and 8 deletions

View File

@ -604,15 +604,10 @@ PendingTx.prototype.componentWillUnmount = function () {
}
PendingTx.prototype.updateTokenInfo = async function (txParams) {
let tokenParams
try {
tokenParams = await this.tokenInfoGetter(txParams.to)
} catch (e) {
log.error(e)
}
const tokenParams = await this.tokenInfoGetter(txParams.to)
this.setState({
tokenSymbol: (tokenParams && tokenParams.symbol),
tokenDecimals: (tokenParams && tokenParams.decimals),
tokenSymbol: (tokenParams.symbol),
tokenDecimals: (tokenParams.decimals),
tokenDataRetrieved: true,
})
}