Skip to content

Commit

Permalink
type error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
A2Fyise committed Feb 2, 2024
1 parent 5d90df0 commit 84a7808
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/app/auth/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ const AuthPage: React.FC = () => {
return setErrorMsg("User or Password Invalid")
}

} catch (error) {
//@ts-ignore
} catch (error: any) {
const errorResponse: any = error?.response
if (!errorResponse) return setErrorMsg("User or Password Invalid")
setErrorMsg(errorResponse?.data.error)
Expand Down

0 comments on commit 84a7808

Please sign in to comment.