Skip to content

Commit

Permalink
fix(notifications): use fallback string format (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
nobe4 authored Aug 11, 2024
1 parent 5951b85 commit 26df3ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/notifications/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ var prettyState = map[string]string{
}

func (n Notification) String() string {
return n.rendered
if n.rendered != "" {
return n.rendered
}

return fmt.Sprintf("[%s] %s at %s: %s", n.Id, n.Author.Login, n.UpdatedAt, n.Subject.Title)
}

func (n Notification) prettyRead() string {
Expand Down

0 comments on commit 26df3ef

Please sign in to comment.