mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 22:36:24 +00:00
fix(@desktop/wallet): add missing currency uppercase
This commit is contained in:
parent
ae397a57c0
commit
14423dfedd
@ -8,7 +8,7 @@ const WalletTypeSeed* = "seed"
|
||||
const WalletTypeWatch* = "watch"
|
||||
const WalletTypeKey* = "key"
|
||||
|
||||
var alwaysVisible = {
|
||||
const alwaysVisible = {
|
||||
1: @["ETH", "SNT", "DAI"],
|
||||
10: @["ETH", "SNT", "DAI"],
|
||||
42161: @["ETH", "SNT", "DAI"],
|
||||
@ -231,7 +231,7 @@ proc toWalletTokenDto*(jsonObj: JsonNode): WalletTokenDto =
|
||||
var marketValuesPerCurrencyObj: JsonNode
|
||||
if(jsonObj.getProp("marketValuesPerCurrency", marketValuesPerCurrencyObj)):
|
||||
for currency, marketValuesObj in marketValuesPerCurrencyObj:
|
||||
result.marketValuesPerCurrency[currency] = marketValuesObj.toTokenMarketValuesDto()
|
||||
result.marketValuesPerCurrency[currency.toUpperAscii()] = marketValuesObj.toTokenMarketValuesDto()
|
||||
|
||||
var balancesPerChainObj: JsonNode
|
||||
if(jsonObj.getProp("balancesPerChain", balancesPerChainObj)):
|
||||
|
Loading…
x
Reference in New Issue
Block a user