Skip to content

Commit f6a44fe

Browse files
committed
notes
1 parent a504b3b commit f6a44fe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/App.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ declare global {
1313
__PORTO__?: any;
1414
}
1515
}
16-
const ALL_CHAINS: Chain[] = Object.values(chains) as Chain[];
16+
17+
const ALL_CHAINS: readonly Chain[] = Object.freeze(
18+
Object.values(chains) as Chain[]
19+
);
20+
1721
const byId = (id: number) => ALL_CHAINS.find((c) => c.id === id);
1822

1923
export function App() {

0 commit comments

Comments
 (0)