Closed PH-LEE closed 5 months ago
Do you want to request a feature or report a bug? bug
What is the current behavior?
The error code type passed to the 'onError' callback in 'TurnstileProps' is not a number but a string.
Demo: https://stackblitz.com/edit/vitejs-vite-pcsmmv?file=src%2FApp.tsx In the example, you can see that if the onError callback is called, the type of the errorCode displays as a string, not a number.
What is the expected behavior? It should match the type, whether it's a number or a string; otherwise, it could cause some bugs when writing conditional statements.
Do you want to request a feature or report a bug? bug
What is the current behavior?
The error code type passed to the 'onError' callback in 'TurnstileProps' is not a number but a string.
Demo: https://stackblitz.com/edit/vitejs-vite-pcsmmv?file=src%2FApp.tsx In the example, you can see that if the onError callback is called, the type of the errorCode displays as a string, not a number.
What is the expected behavior? It should match the type, whether it's a number or a string; otherwise, it could cause some bugs when writing conditional statements.