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

@ -46,7 +46,8 @@ const MyAccountSection: React.FC<Props> = () => {
});
toastHelper.info("Username changed");
} catch (error: any) {
toastHelper.error(error.message);
console.error(error);
toastHelper.error(error.response.data.message);
}
};