diff --git a/.eslintrc.js b/.eslintrc.js index b9d65c8..ce33f75 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -47,5 +47,9 @@ module.exports = { '@typescript-eslint/indent': 'off', 'no-trailing-spaces': 'warn', 'no-undef': 'off', + '@typescript-eslint/no-misused-promises': [ + 'error', + { checksVoidReturn: { attributes: false } }, + ], }, }; diff --git a/src/components/Register/RegisterForm.tsx b/src/components/Register/RegisterForm.tsx index cce2d9b..c9491a5 100644 --- a/src/components/Register/RegisterForm.tsx +++ b/src/components/Register/RegisterForm.tsx @@ -134,7 +134,9 @@ export const RegisterForm: React.FC = () => { */} setFieldValue('turnstileToken', token)} + onSuccess={async (token) => + setFieldValue('turnstileToken', token) + } options={{ appearance: 'interaction-only', theme: 'light',