fix panel create
This commit is contained in:
parent
67ad07f3f4
commit
8e337798b3
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user