Skip to content

Commit

Permalink
Fix connect page supported request chain id check
Browse files Browse the repository at this point in the history
  • Loading branch information
jiexi committed Jan 30, 2025
1 parent 95e1275 commit c18440b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/pages/permissions-connect/connect-page/connect-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@ export const ConnectPage: React.FC<ConnectPageProps> = ({
? [...nonTestNetworks, selectedTestNetwork].map(({ chainId }) => chainId)
: nonTestNetworks.map(({ chainId }) => chainId);

const allNetworksList = [...nonTestNetworks, ...testNetworks].map(({ chainId }) => chainId)

Check failure on line 101 in ui/pages/permissions-connect/connect-page/connect-page.tsx

View workflow job for this annotation

GitHub Actions / Test lint / Test lint

Replace `({·chainId·})·=>·chainId)` with `⏎····({·chainId·})·=>·chainId,⏎··);`

const supportedRequestedChainIds = requestedChainIds.filter((chainId) =>
selectedNetworksList.includes(chainId),
allNetworksList.includes(chainId),
);

const defaultSelectedChainIds =
Expand Down

0 comments on commit c18440b

Please sign in to comment.