Skip to content

Commit

Permalink
fix: BillAction 수정시 BillDetail 초기화 안되는 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Arachneee committed Aug 21, 2024
1 parent 1879b92 commit 084fb5f
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,11 @@ private void resetBillActionDetail(BillAction billAction, Long updatePrice) {
int memberCount = billActionDetails.size();
if (memberCount != 0) {
Long eachPrice = updatePrice / memberCount;
billActionDetails.forEach(billActionDetail -> billActionDetail.updatePrice(eachPrice));
billActionDetails.forEach(billActionDetail -> billActionDetail.updateIsFixed(false));
billActionDetails.forEach(billActionDetail -> {
billActionDetail.updatePrice(eachPrice);
billActionDetail.updateIsFixed(false);
}
);
}
}
}
Expand Down

0 comments on commit 084fb5f

Please sign in to comment.