Skip to content

Commit

Permalink
fix: hide summary if show holdings is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
achannarasappa committed Apr 6, 2021
1 parent ec4f236 commit 3808037
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 3808037

Please sign in to comment.