Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
Empty accounts to not have %
Browse files Browse the repository at this point in the history
  • Loading branch information
gre committed Jun 21, 2019
1 parent 791b700 commit fd49c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/portfolio.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ const getBHWCV: GetBalanceHistoryWithCountervalue = (account, r, calc) => {
cryptoChange.percentage = null;
countervalueChange.percentage =
// in case there were no receive, we just track the market change
countervalueReceiveSum.isZero()
countervalueReceiveSum.isZero() && account.operations.length > 0
? cvRef &&
lastPointRef &&
meaningfulPercentage(lastPointRef.minus(cvRef), cvRef)
Expand Down

0 comments on commit fd49c78

Please sign in to comment.