mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-03 02:06:19 +00:00
fix(@desktop/wallet): fix wrong symbol for pegged tokens
This commit is contained in:
parent
2359dfe6a3
commit
34cf8b6533
@ -53,9 +53,12 @@ QtObject:
|
||||
var updateCache = true
|
||||
let pegSymbol = self.tokenService.getTokenPegSymbol(symbol)
|
||||
if pegSymbol != "":
|
||||
var currencyFormat = self.getFiatCurrencyFormat(pegSymbol)
|
||||
currencyFormat.symbol = symbol
|
||||
result = currencyFormat
|
||||
let currencyFormat = self.getFiatCurrencyFormat(pegSymbol)
|
||||
result = CurrencyFormatDto(
|
||||
symbol: symbol,
|
||||
displayDecimals: currencyFormat.displayDecimals,
|
||||
stripTrailingZeroes: currencyFormat.stripTrailingZeroes
|
||||
)
|
||||
updateCache = true
|
||||
else:
|
||||
let price = self.tokenService.getCachedTokenPrice(symbol, DECIMALS_CALCULATION_CURRENCY)
|
||||
|
Loading…
x
Reference in New Issue
Block a user