Skip to content

Commit

Permalink
fix(parental-leave): Don't show spouse name if other parent is input …
Browse files Browse the repository at this point in the history
…manually (#18097)

Don't show spouse name if other parent is input manually
  • Loading branch information
ylfahfa authored Feb 24, 2025
1 parent eb55718 commit da5b04b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ export const getOtherParentName = (
if (selectedChild?.parentalRelation === ParentalRelations.secondary) {
const spouse = getSpouse(application)

if (!spouse || !spouse.name) {
if (!spouse || !spouse.name || otherParent === MANUAL) {
return otherParentName
}

Expand Down

0 comments on commit da5b04b

Please sign in to comment.