Skip to content

Commit

Permalink
Fix eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Akzuu committed Apr 17, 2024
1 parent fa18a5e commit 48934f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 } },
],
},
};
4 changes: 3 additions & 1 deletion src/components/Register/RegisterForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ export const RegisterForm: React.FC = () => {
*/}
<Turnstile
siteKey={TURNSTILE_SITE_KEY}
onSuccess={(token) => setFieldValue('turnstileToken', token)}
onSuccess={async (token) =>
setFieldValue('turnstileToken', token)
}
options={{
appearance: 'interaction-only',
theme: 'light',
Expand Down

0 comments on commit 48934f5

Please sign in to comment.