Skip to content

Commit

Permalink
Update useTriggerConnectWalletModal hook
Browse files Browse the repository at this point in the history
Set `closeOnEsc` to `true` because the user can close the modal using
the button.
  • Loading branch information
r-czajkowski committed Oct 21, 2024
1 parent 60b474d commit 2db8296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dapp/src/hooks/useTriggerConnectWalletModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 2db8296

Please sign in to comment.