aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin/handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/admin/handler.go')
-rw-r--r--backend/admin/handler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/admin/handler.go b/backend/admin/handler.go
index 7ab6ffc..3b8af23 100644
--- a/backend/admin/handler.go
+++ b/backend/admin/handler.go
@@ -219,7 +219,7 @@ func (h *Handler) postGameEdit(c echo.Context) error {
}
gameType := c.FormValue("game_type")
- isPublic := c.FormValue("is_public") == "public"
+ isPublic := (c.FormValue("is_public") != "")
displayName := c.FormValue("display_name")
durationSeconds, err := strconv.Atoi(c.FormValue("duration_seconds"))
if err != nil {