chore: update error message handler

This commit is contained in:
Steven
2023-06-25 23:01:13 +08:00
parent 96e858f08c
commit b0b8d746c8
5 changed files with 7 additions and 7 deletions

View File

@ -52,7 +52,7 @@ const ChangePasswordDialog: React.FC<Props> = (props: Props) => {
toast("Password changed");
} catch (error: any) {
console.error(error);
toast.error(JSON.stringify(error.response.data));
toast.error(error.response.data.message);
}
requestState.setFinish();
};