Skip to content

Commit

Permalink
fix: whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
YohanTz committed Apr 4, 2024
1 parent 51170b5 commit 313ebff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/web/src/server/api/routers/l1Nfts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 313ebff

Please sign in to comment.