diff --git a/src/pages/AddressPage/index.tsx b/src/pages/AddressPage/index.tsx index 7487a71..4860723 100644 --- a/src/pages/AddressPage/index.tsx +++ b/src/pages/AddressPage/index.tsx @@ -147,7 +147,7 @@ export function AddressPage() { // contract defined and contract address same as id // note: when we toggle there is scenarios where the id are not the same // @ts-ignore - if (!!contracts && contracts?.address === id && !!contractShardId) { + if (!!contracts && contracts?.address === id && contractShardId !== null) { loadSourceCode(id, contractShardId) .then((res) => setSourceCode(res)) .catch((except) => {