Skip to content

Commit

Permalink
skip asset plus debt condition
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Dec 13, 2024
1 parent 45a4804 commit 7ba94db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/types/balance.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,9 @@ func (m BalanceMap) Assets(prices PriceMap, priceTime time.Time) AssetMap {
for currency, b := range m {
total := b.Total()
netAsset := b.Net()
debt := b.Debt()

if total.IsZero() && netAsset.IsZero() {
if total.IsZero() && netAsset.IsZero() && debt.IsZero() {
continue
}

Expand Down

0 comments on commit 7ba94db

Please sign in to comment.