Skip to content

Commit

Permalink
fix: show 0.00 for groups with no holdings
Browse files Browse the repository at this point in the history
  • Loading branch information
achannarasappa committed Dec 27, 2024
1 parent c8c78db commit d19f2de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.18'
go-version: '1.22'
- name: lint
uses: golangci/golangci-lint-action@v5
with:
Expand Down
4 changes: 2 additions & 2 deletions internal/ui/component/summary/summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ func (m Model) View() string {
m.styles.TextLabel("Change: ") + quoteChangeText(m.Summary.TotalChange.Amount, m.Summary.TotalChange.Percent, m.styles)
widthChange := ansi.PrintableRuneWidth(textChange)
textValue := m.styles.TextLabel(" • ") +
m.styles.TextLabel("Value: ") + u.ValueText(m.Summary.Value, m.styles)
m.styles.TextLabel("Value: ") + m.styles.TextLabel(u.ConvertFloatToString(m.Summary.Value, false))
widthValue := ansi.PrintableRuneWidth(textValue)
textCost := m.styles.TextLabel(" • ") +
m.styles.TextLabel("Cost: ") + u.ValueText(m.Summary.Cost, m.styles)
m.styles.TextLabel("Cost: ") + m.styles.TextLabel(u.ConvertFloatToString(m.Summary.Cost, false))
widthCost := ansi.PrintableRuneWidth(textValue)

return grid.Render(grid.Grid{
Expand Down

0 comments on commit d19f2de

Please sign in to comment.