From a6928700875def54fb650fd321dec1bab3ccb397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Bo=C4=8Fa?= Date: Fri, 20 Dec 2024 14:55:16 +0100 Subject: [PATCH] fix(suite): fixed receive account select cannot be closed --- .../wallet/coinmarket/form/useCoinmarketVerifyAccount.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/suite/src/hooks/wallet/coinmarket/form/useCoinmarketVerifyAccount.tsx b/packages/suite/src/hooks/wallet/coinmarket/form/useCoinmarketVerifyAccount.tsx index 9c64ece393a..bed2dfc957e 100644 --- a/packages/suite/src/hooks/wallet/coinmarket/form/useCoinmarketVerifyAccount.tsx +++ b/packages/suite/src/hooks/wallet/coinmarket/form/useCoinmarketVerifyAccount.tsx @@ -156,7 +156,6 @@ const useCoinmarketVerifyAccount = ({ const onChangeAccount = (account: CoinmarketVerifyFormAccountOptionProps) => { if (account.type === 'ADD_SUITE' && device) { - setIsMenuOpen(true); dispatch( openModal({ type: 'add-account', @@ -181,7 +180,7 @@ const useCoinmarketVerifyAccount = ({ selectAccountOption(preselectedAccount); } // eslint-disable-next-line react-hooks/exhaustive-deps - }, []); + }, [accounts]); useEffect(() => { methods.trigger();