mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-22 11:38:57 +00:00
fix(wallet): Show route amounts in network cards (#15441)
This commit is contained in:
parent
64f3ec67dd
commit
bc736257d1
@ -129,12 +129,8 @@ Item {
|
||||
isBridgeTx: root.isBridgeTx
|
||||
errorType: root.errorType
|
||||
weiToEth: function(wei) {
|
||||
if(!!selectedAsset && !!selectedAsset.type
|
||||
&& (selectedAsset.type === Constants.TokenType.Native
|
||||
|| selectedAsset.type === Constants.TokenType.ERC20)
|
||||
) {
|
||||
if(!!selectedAsset && (selectedAsset.type === Constants.TokenType.Native || selectedAsset.type === Constants.TokenType.ERC20))
|
||||
return parseFloat(store.getWei2Eth(wei, selectedAsset.decimals))
|
||||
}
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user