Skip to content

Commit ec08c7b

Browse files
authored
Merge pull request #331 from digital-gov-mg/develop
registry correct father recognised child
2 parents 85eb5ca + ca069ef commit ec08c7b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

public/helpers.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ function canShowFatherDetails(
476476
if (birthFatherFatherIsDeceased) {
477477
return true
478478
}
479-
return birthFatherFatherHasFormallyRecognisedChild == 'true'
479+
return birthFatherFatherHasFormallyRecognisedChild
480480
}
481481

482482
function fatherDetailsSimplified(fatherDetailsContext) {
@@ -514,6 +514,7 @@ function fatherDetailsSimplified(fatherDetailsContext) {
514514
birthFatherFatherHasFormallyRecognisedChild
515515
)
516516
) {
517+
517518
return ''
518519
}
519520
return joinValuesWith(
@@ -1568,7 +1569,7 @@ function getIsWithAdpotion(
15681569
) {
15691570
return false
15701571
} else {
1571-
return birthFatherFatherHasFormallyRecognisedChild == 'true'
1572+
return birthFatherFatherHasFormallyRecognisedChild
15721573
}
15731574
}
15741575
window.getIsWithAdpotion = getIsWithAdpotion

0 commit comments

Comments
 (0)