Skip to content

Commit

Permalink
core: improve notification string format
Browse files Browse the repository at this point in the history
  • Loading branch information
norwnd committed Jan 19, 2025
1 parent fd854b1 commit 32d8af1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/core/notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ func newMatchNote(topic Topic, subject, details string, severity db.Severity, t
// Order is not nil.
func (on *OrderNote) String() string {
base := on.Notification.String()
if on.Order == nil {
if on.Order == nil || on.Order.ID.String() == "" {
return base
}
return fmt.Sprintf("%s - Order: %s", base, on.Order.ID)
Expand Down

0 comments on commit 32d8af1

Please sign in to comment.