Skip to content

Commit b707b1f

Browse files
committed
Handle isContractDeployed error
1 parent 74e52c0 commit b707b1f

File tree

1 file changed

+1
-1
lines changed
  • apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]

1 file changed

+1
-1
lines changed

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default async function Layout(props: {
3939
}
4040

4141
// check if the contract exists
42-
const isValidContract = await isContractDeployed(contract);
42+
const isValidContract = await isContractDeployed(contract).catch(() => false);
4343
if (!isValidContract) {
4444
// TODO - replace 404 with a better page to upsale deploy or other thirdweb products
4545
notFound();

0 commit comments

Comments
 (0)