Skip to content

Commit

Permalink
chore/MSSDK-2050: add debugging logs for recaptcha in register form
Browse files Browse the repository at this point in the history
  • Loading branch information
Saddage committed Jan 3, 2025
1 parent ce8e957 commit 5fc3d77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/components/RegisterPage/RegisterForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ export const RegisterForm = ({ onSuccess }: RegisterFormProps) => {
{showCaptchaOnRegister && (
<>
<ReCAPTCHA
isolated
ref={recaptchaRef}
size='normal'
size='invisible'
badge='bottomright'
sitekey={sitekey}
onChange={handleRecaptchaChange}
Expand Down
4 changes: 2 additions & 2 deletions src/components/RegisterPage/useRegisterForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ function useRegisterForm({ onSuccess }: UseRegisterFormProps) {
});
};

const handleRecaptchaChange = () => {
console.log('##### useRegisterForm > handleRecaptchaChange');
const handleRecaptchaChange = (value: string) => {
console.log('##### useRegisterForm > handleRecaptchaChange', { value });

setErrors((prevValue) => {
return {
Expand Down

0 comments on commit 5fc3d77

Please sign in to comment.