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)
|
||||
c.chain_name = String(c.chain_name).toLowerCase()
|
||||
update[c.chain_name] = c
|
||||
if (Array.isArray(c.assets)) {
|
||||
c.assets.forEach(x => {
|
||||
if (x.coingecko_id && x.coingecko_id !== '') coingecko[x.coingecko_id] = String(x.symbol).toUpperCase()
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
chains = update
|
||||
|
Loading…
Reference in New Issue
Block a user