From 3808037c3bbe027c8999224a2733b9aac1c6da09 Mon Sep 17 00:00:00 2001 From: Ani Channarasappa Date: Tue, 6 Apr 2021 12:38:07 -0400 Subject: [PATCH] fix: hide summary if show holdings is disabled --- internal/ui/ui.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/ui/ui.go b/internal/ui/ui.go index 4359523..21080b2 100644 --- a/internal/ui/ui.go +++ b/internal/ui/ui.go @@ -138,7 +138,7 @@ func (m Model) View() string { viewSummary := "" - if m.ctx.Config.ShowSummary { + if m.ctx.Config.ShowSummary && m.ctx.Config.ShowHoldings { viewSummary += m.summary.View() } @@ -173,7 +173,7 @@ func footer(width int, time string) string { } func getVerticalMargin(config c.Config) int { - if config.ShowSummary { + if config.ShowSummary && config.ShowHoldings { return 2 }