Skip to content

Commit 110bec7

Browse files
Fix lint error: use Set for HIDDEN_CHAINS
Co-Authored-By: Nidhi Singh <nidhi2894@gmail.com>
1 parent 9a02b6d commit 110bec7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/developer-hub/src/components/EntropyTable/entropy-api-data-fetcher.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ const apiChainConfigToEntrySchema = ApiChainConfigSchema.transform((chain) => {
5454

5555
const entropyDeploymentsSchema = z.array(apiChainConfigToEntrySchema);
5656

57-
const HIDDEN_CHAINS = ["taiko"];
57+
const HIDDEN_CHAINS = new Set(["taiko"]);
5858

5959
export async function fetchEntropyDeployments(
6060
url: string,
6161
): Promise<Record<string, EntropyDeployment>> {
6262
const response = await fetch(url);
6363
const entries = entropyDeploymentsSchema.parse(await response.json());
6464
return Object.fromEntries(
65-
entries.filter(([name]) => !HIDDEN_CHAINS.includes(name)),
65+
entries.filter(([name]) => !HIDDEN_CHAINS.has(name)),
6666
);
6767
}

0 commit comments

Comments
 (0)