Skip to content

Commit

Permalink
fix ref type
Browse files Browse the repository at this point in the history
  • Loading branch information
nachat-ayoub committed Feb 21, 2024
1 parent 7910b6f commit e193ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function App() {
const [sendStatus, setSendStatus] = useState<TStatus>(null);
const [error, setError] = useState<null | string>(null);
const { sendEmail } = useForm();
const captchaRef = useRef<React.LegacyRef<ReCAPTCHA> | null>(null);
const captchaRef = useRef(null);

function handleSubmit(e: React.FormEvent<HTMLFormElement>) {
e.preventDefault();
Expand Down

0 comments on commit e193ec3

Please sign in to comment.