Skip to content

Commit

Permalink
#10 Add error to msg if passwords don't match
Browse files Browse the repository at this point in the history
  • Loading branch information
SandraBergstrom committed Jun 21, 2023
1 parent 417c8d4 commit f4a6fe4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pages/auth/SignUpForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ const SignUpForm = () => {
>
Sign up!
</Button>
{errors.non_field_errors?.map((message, idx) => (
<Alert variant="warning" key={idx}>
{message}
</Alert>
))}
</Form>
</Container>
<Container className={`mt-3 ${appStyles.Content}`}>
Expand Down

0 comments on commit f4a6fe4

Please sign in to comment.