fix(@wallet): wrong decimal place for market value in assets list

fixes #13152
This commit is contained in:
Anthony Laibe 2024-01-11 14:40:58 +01:00
parent 263ed2a822
commit eb06c64358
1 changed files with 4 additions and 1 deletions

View File

@ -18,11 +18,14 @@ QtObject:
self.QObject.delete
proc newMarketDetailsItem*(
delegate: io_interface.TokenMarketValuesDataSource, symbol: string): MarketDetailsItem =
delegate: io_interface.TokenMarketValuesDataSource, symbol: string
): MarketDetailsItem =
new(result)
result.setup()
result.delegate = delegate
result.symbol = symbol
result.currencyFormat = delegate.getCurrentCurrencyFormat()
proc updateCurrencyFormat*(self: MarketDetailsItem) =
self.currencyFormat = self.delegate.getCurrentCurrencyFormat()