Skip to content

Commit

Permalink
Merge pull request #320 from famouswizard/patch-2
Browse files Browse the repository at this point in the history
fix: Refactor: Remove Redundant Type Assertion in Ethereum Check
  • Loading branch information
eitjuh authored Jan 8, 2025
2 parents 584df2d + 7ef3395 commit 9140459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const networkParams = {
};

export async function isNetworkAdded(network: NetworkType): Promise<boolean> {
if (!(window as any as any).ethereum) return false;
if (!(window as any).ethereum) return false;

try {
const chainId = await (window as any as any).ethereum.request({
Expand Down

0 comments on commit 9140459

Please sign in to comment.