mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-13 19:44:12 +00:00
fix: proper amount display for tx in TxTable
This commit is contained in:
parent
cdcdd07b23
commit
55eee73ea7
@ -46,7 +46,7 @@ export const getTxAmount = (tx: Transaction) => {
|
||||
|
||||
if (tx.isTokenTransfer && tx.decodedParams) {
|
||||
const tokenDecimals = tx.decimals.toNumber ? tx.decimals.toNumber() : tx.decimals
|
||||
txAmount = `${new BigNumber(tx.decodedParams.value).div(10 ** tokenDecimals).toString()} ${tx.symbol}`
|
||||
txAmount = `${new BigNumber(tx.decodedParams.value).div(10 ** tokenDecimals).toFixed()} ${tx.symbol}`
|
||||
} else if (Number(tx.value) > 0) {
|
||||
txAmount = `${fromWei(toBN(tx.value), 'ether')} ${tx.symbol}`
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user