Skip to content

Commit

Permalink
fix: correct category name for no-date notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
revelaction committed Oct 1, 2024
1 parent 7ae2746 commit cbf6592
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ical/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
"time"
)

const NoDatesCategory = "no-dates"
const NoAlarmCategory = "no-alarm"
const NoDateCategory = "show-no-date"
const NoAlarmCategory = "show-no-alarm"

type Parser struct {
notifications []notify.Notification
Expand Down Expand Up @@ -206,7 +206,7 @@ func (p *Parser) buildNotification(event *ics.VEvent) notify.Notification {
comments = append(comments, p.Value)
}
if p.IANAToken == string(ics.ComponentPropertyCategories) {
if p.Value == NoDatesCategory {
if p.Value == NoDateCategory {
n.ShowDates = false
continue
}
Expand Down

0 comments on commit cbf6592

Please sign in to comment.