# Pastebin HWyZr0uo if (!submissionInProgress.current) { submissionInProgress.current = true; try { prepareHtmlFormSubmission(formName, state); } catch (error) { event.preventDefault(); captureException(error); setPrepareSubmissionError( error instanceof Error ? error : new Error(String(error)), ); } }