Skip to content

Commit

Permalink
xnav: show breakdown only when multiple sessions are set
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Dec 16, 2024
1 parent b1f0fd6 commit d5bc9d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/strategy/xnav/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func (s *Strategy) recordNetAssetValue(ctx context.Context, sessions map[string]

bbgo.Notify(displayAssets)

if s.ShowBreakdown {
if s.ShowBreakdown && len(sessionAssets) > 1 {
for sessionName, assets := range sessionAssets {
slackAttachment := assets.SlackAttachment()
slackAttachment.Title = "Session " + sessionName + " " + slackAttachment.Title
Expand Down

0 comments on commit d5bc9d6

Please sign in to comment.