diff --git a/src/components/captcha/CaptchaInvisible.tsx b/src/components/captcha/CaptchaInvisible.tsx index 37d94f28e..14ba37c16 100644 --- a/src/components/captcha/CaptchaInvisible.tsx +++ b/src/components/captcha/CaptchaInvisible.tsx @@ -1,6 +1,5 @@ import { getCaptchaSiteKey } from '@/utils/env/client' import React, { useRef } from 'react' -import { createPortal } from 'react-dom' import ReCAPTCHA from 'react-google-recaptcha' import { toast } from 'react-hot-toast' import Toast from '../Toast' @@ -39,16 +38,13 @@ export default function CaptchaInvisible({ children }: CaptchaInvisibleProps) { {children(runCaptcha, (className) => ( ))} - {createPortal( - , - document.body - )} + ) }