Skip to content

Commit

Permalink
fix eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
nefelitav committed Feb 24, 2024
1 parent 678cf2f commit b56930d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ module.exports = {
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components':"off",
'@typescript-eslint/no-explicit-any': 'off',
},
}
2 changes: 1 addition & 1 deletion src/components/Register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const Register: React.FC = () => {
console.error(err.message);
});

} catch (error: unknown) {
} catch (error: any) {
// Handle the error
console.error('An error occurred:', error.message);
setErrorMessage(error.message);
Expand Down

0 comments on commit b56930d

Please sign in to comment.