From 313ebff996848788456532153922316a8a3abc07 Mon Sep 17 00:00:00 2001 From: YohanTz Date: Thu, 4 Apr 2024 15:21:59 +0200 Subject: [PATCH] fix: whitelist --- apps/web/src/server/api/routers/l1Nfts.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/web/src/server/api/routers/l1Nfts.ts b/apps/web/src/server/api/routers/l1Nfts.ts index 736838a9..51aebd25 100644 --- a/apps/web/src/server/api/routers/l1Nfts.ts +++ b/apps/web/src/server/api/routers/l1Nfts.ts @@ -64,7 +64,11 @@ export const l1NftsRouter = createTRPCRouter({ const mediaFormat = media?.format === "mp4" ? "video" : "image"; const isBridgeable = whitelistedCollections !== undefined && - whitelistedCollections.includes(contract.address); + whitelistedCollections.find( + (whitelistedCollection) => + whitelistedCollection.toLowerCase() === + contract.address.toLocaleLowerCase() + ) !== undefined; return { contractAddress: contract.address,