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