@@ -822,6 +822,11 @@ function registrationStatementSimplified(registrationStatementContext) {
822822 relationMap [
823823 ( _a = informantType ) === null || _a === void 0 ? void 0 : _a . toLowerCase ( )
824824 ]
825+ const isNotInformantLegalFather = ! isInformantLegalFather (
826+ informantType ,
827+ motherMaritalStatus ,
828+ birthFatherFatherHasFormallyRecognisedChild
829+ )
825830 return joinValuesWith (
826831 __spreadArray (
827832 __spreadArray (
@@ -843,13 +848,8 @@ function registrationStatementSimplified(registrationStatementContext) {
843848 informantFirstName
844849 ] ) + ',' ,
845850 ( informantType === 'FATHER' &&
846- ! isInformantLegalFather (
847- informantType ,
848- motherMaritalStatus ,
849- birthFatherFatherHasFormallyRecognisedChild
850- )
851- ? 'mpanolotra'
852- : informantTypeMapped || 'mpanolotra' ) + ','
851+ isNotInformantLegalFather ? ''
852+ : ( informantTypeMapped ? informantTypeMapped + ',' : '' ) )
853853 ] ,
854854 isInformantMotherOrFather (
855855 informantType ,
@@ -934,6 +934,11 @@ function registrationStatement() {
934934 : this . registrar . date ,
935935 'Africa/Nairobi'
936936 )
937+ const informantRelationMapped = relationMap [
938+ ( _a = this . informantType ) === null || _a === void 0
939+ ? void 0
940+ : _a . toLowerCase ( )
941+ ]
937942 return joinValuesWith (
938943 __spreadArray (
939944 __spreadArray (
@@ -950,11 +955,7 @@ function registrationStatement() {
950955 this . informantFamilyName ,
951956 this . informantFirstName
952957 ] ) + ',' ,
953- ( relationMap [
954- ( _a = this . informantType ) === null || _a === void 0
955- ? void 0
956- : _a . toLowerCase ( )
957- ] || 'mpanolotra' ) + ','
958+ ( informantRelationMapped ? informantRelationMapped + ',' : '' )
958959 ] ,
959960 isInformantMotherOrFather ( this . informantType )
960961 ? [ ]
0 commit comments