fix(wallet): Show route amounts in network cards (#15441)

This commit is contained in:
Cuteivist 2024-07-10 11:02:35 +02:00 committed by GitHub
parent 64f3ec67dd
commit bc736257d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 5 deletions

View File

@ -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
}
}