Skip to content

Commit

Permalink
feat: make wc v2 work
Browse files Browse the repository at this point in the history
  • Loading branch information
simodrws committed Jun 27, 2023
1 parent 7ddc9e8 commit f99f0f8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/refactor/masanew.stories.tsx
Expand Up @@ -471,7 +471,7 @@ const Component = (): JSX.Element => {
const TemplateNewMasaState = (props: Args) => (
<MasaProvider
config={{
allowedWallets: ['metamask', 'valora', 'walletconnect'],
allowedWallets: ['metamask', 'walletconnect'],
forceChain: 'ethereum',
allowedNetworkNames: [
'goerli',
Expand Down
4 changes: 2 additions & 2 deletions src/refactor/wallet-client/network/use-network.ts
Expand Up @@ -73,8 +73,8 @@ export const useNetwork = () => {
}, [networkError, stopSwitching]);

const canProgramaticallySwitchNetwork = useMemo(
() => !!switchNetwork,
[switchNetwork]
() => !!switchNetwork || activeConnector?.name === 'WalletConnect',
[switchNetwork, activeConnector]
);

return {
Expand Down
4 changes: 2 additions & 2 deletions stories/masa.stories.tsx
Expand Up @@ -243,9 +243,9 @@ const TemplateWithRainbowKit: Story = (props: Args) => {
<>
<MasaProvider
company="Masa"
walletsToUse={['metamask', 'valora', 'walletconnect']}
walletsToUse={['metamask', 'walletconnect']}
useRainbowKitWalletConnect
forceNetwork="celo"
forceNetwork="alfajores"
rainbowKitModalSize={'wide'}
verbose={false}
>
Expand Down

0 comments on commit f99f0f8

Please sign in to comment.