From bf16faccf099acdcd0c2556deab30cb1ba10183b Mon Sep 17 00:00:00 2001 From: danidfra Date: Thu, 10 Oct 2024 17:40:54 -0300 Subject: [PATCH] Update the captcha modal to not close on outside clicks --- src/components/modal-root.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/modal-root.tsx b/src/components/modal-root.tsx index 5afc25d4a..0612b90ad 100644 --- a/src/components/modal-root.tsx +++ b/src/components/modal-root.tsx @@ -6,7 +6,6 @@ import { useHistory } from 'react-router-dom'; import { cancelReplyCompose } from 'soapbox/actions/compose'; import { cancelEventCompose } from 'soapbox/actions/events'; import { openModal, closeModal } from 'soapbox/actions/modals'; -import { startOnboarding } from 'soapbox/actions/onboarding'; import { useAppDispatch, usePrevious } from 'soapbox/hooks'; import type { ModalType } from 'soapbox/features/ui/components/modal-root'; @@ -113,8 +112,7 @@ const ModalRoot: React.FC = ({ children, onCancel, onClose, type }) } else if ((hasComposeContent || hasEventComposeContent) && type === 'CONFIRM') { dispatch(closeModal('CONFIRM')); } else if (type === 'CAPTCHA') { - dispatch(startOnboarding()); - onClose(); + return; } else { onClose(); }