chore: update error message toast

This commit is contained in:
Steven
2022-11-13 10:02:40 +08:00
parent 3a86e1338c
commit ca9590a49b
9 changed files with 37 additions and 27 deletions

View File

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