Skip to content

Commit

Permalink
Fix "install metamask" button
Browse files Browse the repository at this point in the history
  • Loading branch information
csillag committed Oct 9, 2024
1 parent 77df28b commit d07b8eb
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion frontend/src/components/ConnectWallet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,19 @@ export const ConnectWallet: FC<Props> = ({ mobileSticky, avoidButtonClasses = fa
}
}

console.log(
'connected?',
isConnected,
'isProviderAvailable?',
isProviderAvailable,
'homeChain?',
isHomeChain,
'userAddress:',
userAddress,
'chainId:',
chainId,
)

return (
<>
{!isConnected && !isProviderAvailable && (
Expand All @@ -87,7 +100,7 @@ export const ConnectWallet: FC<Props> = ({ mobileSticky, avoidButtonClasses = fa
Switch Network
</Button>
)}
{!isConnected && isProviderAvailable && isHomeChain && (
{!isConnected && isProviderAvailable && (
<Button
className={avoidButtonClasses ? undefined : classes.connectWalletBtn}
color={'primary'}
Expand Down

0 comments on commit d07b8eb

Please sign in to comment.