Skip to content

Commit

Permalink
docs: typos...
Browse files Browse the repository at this point in the history
  • Loading branch information
Oudwins committed Aug 17, 2024
1 parent 462c3bb commit b4288e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,12 @@ func handleSignup(w http.ResponseWriter, r *http.Request) {
errs := schema.Parse(zhttp.NewRequestDataProvider(r), &signupFormData)

if errs != nil {
www.Render(signupFormTempl(errs))
www.Render(signupFormTempl(&signupFormData, errs))
}
// handle successful signup
}

templ Form(data *SignupFormData, errs z.ZogErrMap) {
templ signupFormTempl(data *SignupFormData, errs z.ZogErrMap) {
<input type="text" name="email" value={data.Email}>
// display only the first error
if e, ok := errs["email"]; ok {
Expand Down

0 comments on commit b4288e9

Please sign in to comment.