Skip to content

Commit

Permalink
fix: wrong initial state for showing errors in captcha
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikskog committed Sep 6, 2024
1 parent 1df1666 commit 009a35e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/components/Attendance/CaptchaModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface ICaptchaModalProps {

const CaptchaModal: FC<ICaptchaModalProps> = (props: ICaptchaModalProps) => {
const { showModal, toggleModal, setCaptcha, header, text, errorText, onError } = props;
const [showErrorText, setShowErrorText] = useState(true);
const [showErrorText, setShowErrorText] = useState(false);
const [turnstileError, setTurnstileError] = useState<string | null>(null);

const validCaptcha = (token: string | null) => {
Expand Down

0 comments on commit 009a35e

Please sign in to comment.