Browse Source

Merge pull request 'deserialize login error message correctly' (#189) from fix/login-hellothere into main

Reviewed-on: https://git.chapo.chat/hexbear-collective/hexbear-frontend/pulls/189
pull/199/head
DashEightMate 7 months ago
parent
commit
7ffba6e3b3
  1. 4
      src/components/login.tsx

4
src/components/login.tsx

@ -468,8 +468,8 @@ export class Login extends Component<any, State> {
.catch((err: Error | AxiosError) => {
const res = (err as AxiosError).response;
if (res) {
const { message } = res.data;
toast(i18n.t(message), 'danger');
const { error } = res.data;
toast(i18n.t(error), 'danger');
} else {
console.log(err);
}

Loading…
Cancel
Save