Used preferred name in volunteer signup.
This commit is contained in:
parent
e7b25ea0c6
commit
43cb23e56c
1 changed files with 1 additions and 5 deletions
|
|
@ -69,11 +69,7 @@ func (app *App) handlePublicSignup(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Find or create participant by email.
|
// Find or create participant by email.
|
||||||
name := body.PreferredName
|
participant, _, err := app.upsertParticipant(body.Email, body.PreferredName)
|
||||||
if body.TicketName != "" {
|
|
||||||
name = body.TicketName
|
|
||||||
}
|
|
||||||
participant, _, err := app.upsertParticipant(body.Email, name)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
writeError(w, "internal error", http.StatusInternalServerError)
|
writeError(w, "internal error", http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue