Skip to content

Commit

Permalink
Fix login error handling (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
evroon committed Sep 24, 2023
1 parent 419e419 commit a72dab1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/services/user.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ export async function performLogin(username: string, password: string) {

const { data } = await createAxios()
.post('token', bodyFormData)
.catch((err_response: any) => handleRequestError(err_response));
.catch((err_response: any) => {
handleRequestError(err_response);
return { data: null };
});

if (data == null) {
return false;
Expand Down

1 comment on commit a72dab1

@vercel
Copy link

@vercel vercel bot commented on a72dab1 Sep 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.