fix panel create

This commit is contained in:
Dot-Rar 2020-03-23 12:52:47 +00:00
parent 67ad07f3f4
commit 8e337798b3

View File

@ -126,7 +126,7 @@ func PanelCreateHandler(ctx *gin.Context) {
// Validate reaction emote // Validate reaction emote
reaction := strings.ToLower(ctx.PostForm("reaction")) 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)) ctx.Redirect(302, fmt.Sprintf("/manage/%d/panels?validReaction=false", guildId))
return return
} }