mirror of
https://github.com/LaconicNetwork/laconic.com.git
synced 2026-01-13 14:44:07 +00:00
fixed error for captcha
This commit is contained in:
parent
369f46defe
commit
b8ce4cc15e
@ -40,7 +40,7 @@ const CustomForm = ({ data }: FormProps) => {
|
||||
const [errorMsg, setErrorMsg] = useState('')
|
||||
const [isFormSent, setIsFormSent] = useState(false)
|
||||
const [isSending, setIsSending] = useState(false)
|
||||
const reRef = useRef<ReCAPTCHA>()
|
||||
// const reRef = useRef<ReCAPTCHA>()
|
||||
|
||||
const handleSubmit = async (e: any) => {
|
||||
e.preventDefault()
|
||||
@ -61,7 +61,7 @@ const CustomForm = ({ data }: FormProps) => {
|
||||
inquiry: selectedOption.value
|
||||
}
|
||||
|
||||
const token = await reRef.current.executeAsync()
|
||||
// const token = await reRef.current.executeAsync()
|
||||
|
||||
await fetch(`${process.env.NEXT_PUBLIC_API}/api/contact`, {
|
||||
method: 'POST',
|
||||
@ -127,11 +127,11 @@ const CustomForm = ({ data }: FormProps) => {
|
||||
onChange={(e) => setText(e.target.value)}
|
||||
></textarea>
|
||||
</label>
|
||||
<ReCAPTCHA
|
||||
{/* <ReCAPTCHA
|
||||
siteKey={process.env.NEXT_PUBLIC_RECAPTCHA_SITE_KEY}
|
||||
size="invisible"
|
||||
ref={reRef}
|
||||
/>
|
||||
/> */}
|
||||
<Button size="medium" variant="primary">
|
||||
{data?.formLabelButton}
|
||||
</Button>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user