Skip to content

Commit

Permalink
Bug: Fixed headings repeat Ask bug due to change in habit struct.
Browse files Browse the repository at this point in the history
  • Loading branch information
wakatara committed Jun 6, 2024
1 parent efeb730 commit c2a2ed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion harsh.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ func (h *Harsh) askHabits() {
for _, habit := range h.Habits {
for _, dh := range dayhabit {
if habit.Name == dh && dt.After(habit.FirstRecord) {
if heading != dh {
if heading != habit.Heading {
color.Bold.Printf("\n" + habit.Heading + "\n")
heading = habit.Heading
}
Expand Down

0 comments on commit c2a2ed7

Please sign in to comment.