types: fix balance filtering

This commit is contained in:
c9s 2022-09-20 15:08:35 +08:00
parent 17b5e3566a
commit de1b0bccfc
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -220,7 +220,7 @@ func (m BalanceMap) Assets(prices PriceMap, priceTime time.Time) AssetMap {
func (m BalanceMap) Print() {
for _, balance := range m {
if balance.Available.IsZero() && balance.Locked.IsZero() {
if balance.Net().IsZero() {
continue
}