bridge_ui: fix receiving tvl for unknown chains
This commit is contained in:
parent
a5dbbac112
commit
bbb9986f05
|
@ -51,7 +51,8 @@ const createTVLArray = (notionalTvl: NotionalTvl) => {
|
||||||
for (const [chainId, chainAssets] of Object.entries(notionalTvl.AllTime)) {
|
for (const [chainId, chainAssets] of Object.entries(notionalTvl.AllTime)) {
|
||||||
if (chainId === "*") continue;
|
if (chainId === "*") continue;
|
||||||
const originChainId = +chainId as ChainId;
|
const originChainId = +chainId as ChainId;
|
||||||
const originChain = CHAINS_BY_ID[originChainId].name;
|
const originChain =
|
||||||
|
CHAINS_BY_ID[originChainId]?.name || `Unknown [${chainId}]`;
|
||||||
for (const [tokenAddress, lockedAsset] of Object.entries(chainAssets)) {
|
for (const [tokenAddress, lockedAsset] of Object.entries(chainAssets)) {
|
||||||
if (tokenAddress === "*") continue;
|
if (tokenAddress === "*") continue;
|
||||||
tvl.push({
|
tvl.push({
|
||||||
|
|
Loading…
Reference in New Issue