Skip to content

Commit

Permalink
fix: cast type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Feb 7, 2024
1 parent 6234f84 commit 39a426f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions interface/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ const addresses = Object.entries(_addresses).reduce((acc, [root, nested]) => {
Object.keys(nested).map((key) => {
if (typeof nested[key as keyof typeof nested] === "string") {
const value = nested[key as keyof typeof nested];
if (!nested.CHAIN_ID) console.log(root);
if (!(nested as any).CHAIN_ID) console.log(root);
acc.push({
path: `${root} ${key}`,
value: value,
link: `${CHAIN_ID_CLIENT_MAP[nested.CHAIN_ID]?.chain?.blockExplorers
?.default.url}/address/${value}`,
link: `${CHAIN_ID_CLIENT_MAP[(nested as any).CHAIN_ID]?.chain
?.blockExplorers?.default.url}/address/${value}`,
});
}
});
Expand Down

0 comments on commit 39a426f

Please sign in to comment.