Skip to content

Commit

Permalink
Fix metamask detection
Browse files Browse the repository at this point in the history
  • Loading branch information
thesan committed Jun 4, 2024
1 parent 751174d commit 1aa49cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/src/accounts/providers/accounts/useWallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const useMetamask = (): Metamask[] => {

const metamask: Metamask | undefined = useMemo(() => {
const snapId = process.env.REACT_APP_METAMASK_SNAP_ID
const isMetaMask = (window as any)?.ethereum?.isMetaMask
const isMetaMask = !!window.ethereum && '_metamask' in window.ethereum
if (!snapId || !isMetaMask) return

return new Metamask(snapId, endpoints.nodeHttpRpcEndpoint)
Expand Down

0 comments on commit 1aa49cb

Please sign in to comment.