Skip to content

Commit

Permalink
customcommands: fix typo in hourly interval error (#1128)
Browse files Browse the repository at this point in the history
This PR makes the changes requested [here](https://trello.com/c/nEj73iGd) and changes "hour" to "hourly".
  • Loading branch information
lemm-e authored Feb 24, 2022
1 parent 87abc48 commit f8b94a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion customcommands/customcommands.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func (cc *CustomCommand) Validate(tmpl web.TemplateData) (ok bool) {
}

if cc.TriggerTypeForm == "interval_hours" && (cc.TimeTriggerInterval < MinIntervalTriggerDurationHours || cc.TimeTriggerInterval > MaxIntervalTriggerDurationHours) {
tmpl.AddAlerts(web.ErrorAlert(fmt.Sprintf("Hour interval can be between %v and %v", MinIntervalTriggerDurationHours, MaxIntervalTriggerDurationHours)))
tmpl.AddAlerts(web.ErrorAlert(fmt.Sprintf("Hourly interval can be between %v and %v", MinIntervalTriggerDurationHours, MaxIntervalTriggerDurationHours)))
return false
}

Expand Down

0 comments on commit f8b94a2

Please sign in to comment.