Used preferred name in volunteer signup.

This commit is contained in:
Pen Anderson 2026-03-04 21:06:00 -06:00
parent e7b25ea0c6
commit 43cb23e56c

View file

@ -69,11 +69,7 @@ func (app *App) handlePublicSignup(w http.ResponseWriter, r *http.Request) {
}
// Find or create participant by email.
name := body.PreferredName
if body.TicketName != "" {
name = body.TicketName
}
participant, _, err := app.upsertParticipant(body.Email, name)
participant, _, err := app.upsertParticipant(body.Email, body.PreferredName)
if err != nil {
writeError(w, "internal error", http.StatusInternalServerError)
return