diff --git a/src/components/views/dialogs/RegistrationEmailPromptDialog.tsx b/src/components/views/dialogs/RegistrationEmailPromptDialog.tsx index b7cc81c113..3f3ad215a5 100644 --- a/src/components/views/dialogs/RegistrationEmailPromptDialog.tsx +++ b/src/components/views/dialogs/RegistrationEmailPromptDialog.tsx @@ -44,7 +44,8 @@ const RegistrationEmailPromptDialog: React.FC = ({onFinished}) => { const [email, setEmail] = useState(""); const fieldRef = useRef(); - const onSubmit = async () => { + const onSubmit = async (e) => { + e.preventDefault(); if (email) { const valid = await fieldRef.current.validate({ allowEmpty: false }); @@ -73,6 +74,7 @@ const RegistrationEmailPromptDialog: React.FC = ({onFinished}) => {