mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-10 13:46:35 +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
|
var updateCache = true
|
||||||
let pegSymbol = self.tokenService.getTokenPegSymbol(symbol)
|
let pegSymbol = self.tokenService.getTokenPegSymbol(symbol)
|
||||||
if pegSymbol != "":
|
if pegSymbol != "":
|
||||||
var currencyFormat = self.getFiatCurrencyFormat(pegSymbol)
|
let currencyFormat = self.getFiatCurrencyFormat(pegSymbol)
|
||||||
currencyFormat.symbol = symbol
|
result = CurrencyFormatDto(
|
||||||
result = currencyFormat
|
symbol: symbol,
|
||||||
|
displayDecimals: currencyFormat.displayDecimals,
|
||||||
|
stripTrailingZeroes: currencyFormat.stripTrailingZeroes
|
||||||
|
)
|
||||||
updateCache = true
|
updateCache = true
|
||||||
else:
|
else:
|
||||||
let price = self.tokenService.getCachedTokenPrice(symbol, DECIMALS_CALCULATION_CURRENCY)
|
let price = self.tokenService.getCachedTokenPrice(symbol, DECIMALS_CALCULATION_CURRENCY)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user