Skip to content

Commit

Permalink
Fix: Reverted networth calculation change
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyah committed May 13, 2026
1 parent 3e3e6ee commit 2da1162
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ public BigDecimal getNetWorth() {
BigDecimal netWorth = new BigDecimal("0");

for (Share s : shares) {

netWorth = netWorth.add(s.getStock().getSalesPrice().multiply(s.getQuantity()));
SaleCalculator calculator = new SaleCalculator(s);
netWorth = netWorth.add(calculator.calculateTotal());
}
return netWorth;
}
Expand Down

0 comments on commit 2da1162

Please sign in to comment.