Skip to content

Commit

Permalink
Fix Spouse Dependency Check in Divorce Logic.
Browse files Browse the repository at this point in the history
Corrected an error where the departing partner was incorrectly set to the origin partner rather than the spouse. This ensures that the dependent spouse is properly added to the departing partners list.
  • Loading branch information
IllianiCBT committed Nov 18, 2024
1 parent 3979544 commit b65e912
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public void divorce(final Campaign campaign, final LocalDate today, final Person
}

if (spouse.getPrimaryRole().isDependent()) {
departingPartners.add(origin);
departingPartners.add(spouse);
}

if (!departingPartners.isEmpty()) {
Expand Down

0 comments on commit b65e912

Please sign in to comment.