From 2db829648d4e3fcdca59a5d95386ae13e0039eca Mon Sep 17 00:00:00 2001 From: Rafal Czajkowski Date: Mon, 21 Oct 2024 16:06:10 +0200 Subject: [PATCH] Update `useTriggerConnectWalletModal` hook Set `closeOnEsc` to `true` because the user can close the modal using the button. --- dapp/src/hooks/useTriggerConnectWalletModal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dapp/src/hooks/useTriggerConnectWalletModal.ts b/dapp/src/hooks/useTriggerConnectWalletModal.ts index d916759db..2a869c0cd 100644 --- a/dapp/src/hooks/useTriggerConnectWalletModal.ts +++ b/dapp/src/hooks/useTriggerConnectWalletModal.ts @@ -15,7 +15,7 @@ export default function useTriggerConnectWalletModal() { isMounted.current = true openModal(MODAL_TYPES.CONNECT_WALLET, { withCloseButton: true, - closeOnEsc: false, + closeOnEsc: true, }) } }, [closeModal, isEmbed, isSignedMessage, openModal])