check if assets is null in config
This commit is contained in:
parent
a8ef51909b
commit
261beb968d
@ -21,9 +21,11 @@ configs.keys().forEach(k => {
|
|||||||
const c = configs(k)
|
const c = configs(k)
|
||||||
c.chain_name = String(c.chain_name).toLowerCase()
|
c.chain_name = String(c.chain_name).toLowerCase()
|
||||||
update[c.chain_name] = c
|
update[c.chain_name] = c
|
||||||
c.assets.forEach(x => {
|
if (Array.isArray(c.assets)) {
|
||||||
if (x.coingecko_id && x.coingecko_id !== '') coingecko[x.coingecko_id] = String(x.symbol).toUpperCase()
|
c.assets.forEach(x => {
|
||||||
})
|
if (x.coingecko_id && x.coingecko_id !== '') coingecko[x.coingecko_id] = String(x.symbol).toUpperCase()
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
chains = update
|
chains = update
|
||||||
|
Loading…
Reference in New Issue
Block a user