We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aea9dc commit b436694Copy full SHA for b436694
frontend/src/components/SignupPage.js
@@ -78,9 +78,10 @@ function SignupPage() {
78
const res = await axios
79
.post(URL_USER_SVC, { username, email, password })
80
.catch((err) => {
81
+ console.log(err, err.response.data.message);
82
if (err.response.status === STATUS_CODE_BAD_REQUEST) {
- if (err.response.message === "Email is in the wrong format!") {
83
- setErrorDialog(err.response.message);
+ if (err.response.data.message === "Email is in the wrong format!") {
84
+ setErrorDialog(err.response.data, message);
85
} else {
86
setDoesUserExist(true);
87
setErrorDialog(
0 commit comments