From 8e337798b3179f5d5ffa433dee09fa4e1c813ac8 Mon Sep 17 00:00:00 2001 From: Dot-Rar Date: Mon, 23 Mar 2020 12:52:47 +0000 Subject: [PATCH] fix panel create --- app/http/endpoints/manage/panelcreate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/http/endpoints/manage/panelcreate.go b/app/http/endpoints/manage/panelcreate.go index 5f6d386..ade0d02 100644 --- a/app/http/endpoints/manage/panelcreate.go +++ b/app/http/endpoints/manage/panelcreate.go @@ -126,7 +126,7 @@ func PanelCreateHandler(ctx *gin.Context) { // Validate reaction emote reaction := strings.ToLower(ctx.PostForm("reaction")) - if len(title) == 0 || len(title) > 32 { + if len(reaction) == 0 || len(reaction) > 32 { ctx.Redirect(302, fmt.Sprintf("/manage/%d/panels?validReaction=false", guildId)) return }