From 98a6086b27adae48a99887e52bf4cbbf92e645e3 Mon Sep 17 00:00:00 2001 From: michalsmiarowski Date: Wed, 26 Jul 2023 09:53:24 +0200 Subject: [PATCH] Add `shouldForceCloseModal` to dependency array --- .../components/WalletConnectionModalBase.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/Modal/SelectWalletModal/components/WalletConnectionModalBase.tsx b/src/components/Modal/SelectWalletModal/components/WalletConnectionModalBase.tsx index 056f0f9a2..1045c54cf 100644 --- a/src/components/Modal/SelectWalletModal/components/WalletConnectionModalBase.tsx +++ b/src/components/Modal/SelectWalletModal/components/WalletConnectionModalBase.tsx @@ -59,7 +59,13 @@ const WalletConnectionModalBase: FC = ({ captureWalletConnected({ walletType }) activate(connector) if (shouldForceCloseModal) closeModal() - }, [activate, connector, captureWalletConnected, walletType]) + }, [ + activate, + connector, + captureWalletConnected, + walletType, + shouldForceCloseModal, + ]) return ( <>