Fixes adding exponent for chains without coingecko_ids

This commit is contained in:
ZENODE 2024-02-19 07:33:54 +01:00
parent 23d43543cb
commit dc1c4a5ca1

View File

@ -291,6 +291,7 @@ export const useDashboard = defineStore('dashboard', {
if(this.chains[k]) this.chains[k].assets.forEach(a => { if(this.chains[k]) this.chains[k].assets.forEach(a => {
if(a.coingecko_id !== undefined && a.coingecko_id.length > 0) { if(a.coingecko_id !== undefined && a.coingecko_id.length > 0) {
coinIds.push(a.coingecko_id) coinIds.push(a.coingecko_id)
}
a.denom_units.forEach(u => { a.denom_units.forEach(u => {
this.coingecko[u.denom] = { this.coingecko[u.denom] = {
coinId: a.coingecko_id || '', coinId: a.coingecko_id || '',
@ -298,7 +299,6 @@ export const useDashboard = defineStore('dashboard', {
symbol: a.symbol symbol: a.symbol
} }
}) })
}
}) })
}) })