chore: update error message handler

This commit is contained in:
Steven
2022-08-20 07:34:39 +08:00
parent a98e64cf0a
commit f06a3d171b
15 changed files with 42 additions and 27 deletions

View File

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