We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 306f3da commit a66071bCopy full SHA for a66071b
apps/dashboard/src/middleware.ts
@@ -51,7 +51,12 @@ export async function middleware(request: NextRequest) {
51
52
// if the first section of the path is a number, check if it's a valid chain_id and re-write it to the slug
53
const possibleChainId = Number(paths[0]);
54
- if (Number.isInteger(possibleChainId) && possibleChainId !== 404) {
+
55
+ if (
56
+ possibleChainId &&
57
+ Number.isInteger(possibleChainId) &&
58
+ possibleChainId !== 404
59
+ ) {
60
const possibleChain = defineChain(possibleChainId);
61
try {
62
const chainMetadata = await getChainMetadata(possibleChain);
0 commit comments