Fix bug in match scheduling redirect.

This commit is contained in:
Patrick Fairbank
2022-08-23 17:52:41 -07:00
parent a23d675ebb
commit 3ea4e26af3

View File

@@ -27,6 +27,7 @@ func (web *Web) scheduleGetHandler(w http.ResponseWriter, r *http.Request) {
matchType := getMatchType(r) matchType := getMatchType(r)
if matchType == "" { if matchType == "" {
http.Redirect(w, r, "/setup/schedule?matchType=practice", 302) http.Redirect(w, r, "/setup/schedule?matchType=practice", 302)
return
} }
if matchType != "practice" && matchType != "qualification" { if matchType != "practice" && matchType != "qualification" {