Skip to content

Commit

Permalink
Add shouldForceCloseModal to dependency array
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsmiarowski committed Jul 26, 2023
1 parent 3bf7da1 commit 98a6086
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ const WalletConnectionModalBase: FC<Props> = ({
captureWalletConnected({ walletType })
activate(connector)
if (shouldForceCloseModal) closeModal()
}, [activate, connector, captureWalletConnected, walletType])
}, [
activate,
connector,
captureWalletConnected,
walletType,
shouldForceCloseModal,
])

return (
<>
Expand Down

0 comments on commit 98a6086

Please sign in to comment.