t49tran / react-google-recaptcha-v3

Google Recaptcha V3 integration for React
MIT License
434 stars 91 forks source link

[BUG] The commit "Fix issue with script reload on provider rerender with `scriptProps` present" introduces a regression on my product #150

Open felixmeziere opened 2 years ago

felixmeziere commented 2 years ago

Hi there :)

This commit from version 1.9.8 introduces a regression on my website's checkout page, when the user uses recaptcha twice in a row (first to signup, and then again immediately to purchase a booking).

What happens is there is a js error that blocks the user from doing proceeding with the purchase. I'm on nextjs 12.2.2. You can find details on the error below:

TypeError Array.<anonymous>(recaptcha/releases/PRMRaAwB3KlylGQR57Dyk-pF/recaptcha__fr)
Cannot read properties of undefined (reading 'auto_render_clients')

image

How can we solve this issue? Is it possible to revert this commit?

Thanks for the help!

(@nmalyarsky)

michetti commented 1 year ago

We experienced the exact same problem with 1.10.0. Reverting to 1.9.7 worked for us.

theo-mesnil commented 1 year ago

We've got the same issue with 1.10.0.