aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin/handler.go
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-03-12 03:10:22 +0900
committernsfisis <nsfisis@gmail.com>2025-03-12 03:10:22 +0900
commit4848d10be595cbc257b1d43be1c924fdcf81284e (patch)
tree09e5afce1d2c99d64d4cebd2c580aeff11545752 /backend/admin/handler.go
parentb21e4525eca3b326799c2521da76236623e2cc57 (diff)
downloadphperkaigi-2025-albatross-4848d10be595cbc257b1d43be1c924fdcf81284e.tar.gz
phperkaigi-2025-albatross-4848d10be595cbc257b1d43be1c924fdcf81284e.tar.zst
phperkaigi-2025-albatross-4848d10be595cbc257b1d43be1c924fdcf81284e.zip
feat(backend): change is_public input to checkbox in game edit page
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 {