Skip to content

Commit

Permalink
Update SignupPage.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengJiyuqing committed Nov 9, 2022
1 parent 8aea9dc commit d5cdac0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/SignupPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ function SignupPage() {
const res = await axios
.post(URL_USER_SVC, { username, email, password })
.catch((err) => {
console.log(err);
if (err.response.status === STATUS_CODE_BAD_REQUEST) {
if (err.response.message === "Email is in the wrong format!") {
setErrorDialog(err.response.message);
Expand Down

0 comments on commit d5cdac0

Please sign in to comment.