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