Skip to content

Commit 6c112f7

Browse files
committed
remove commented reverted toamasina conditions
1 parent 6d37332 commit 6c112f7

File tree

2 files changed

+6
-37
lines changed

2 files changed

+6
-37
lines changed

public/helpers.js

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,6 @@ function eventStatement() {
255255
? 'fokontany ' + this.birthChildFokontanyCustomAddress + ','
256256
: '',
257257

258-
// // this.birthChildFokontanyCustomAddress
259-
// // .toLowerCase()
260-
// // .includes('toamasina')
261-
// // ? ''
262-
// // :
263-
// // (this.birthChildFokontanyCustomAddress ? ', ' : '') +
264258
'kaominina',
265259
(definitionOffice(
266260
replaceByUppercase(placeOfBirthDistrict)
@@ -416,9 +410,6 @@ function fatherDetails(fatherPrimaryDistrict) {
416410
(this.birthFatherFokontanyCustomAddress ||
417411
this.birthMotherFokontanyCustomAddress ||
418412
'-') + ',',
419-
// // fatherPrimaryDistrict?.toLowerCase().includes('cu toamasina')
420-
// // ? ''
421-
// // :
422413
'kaominina' +
423414
' ' +
424415
(definitionOffice(
@@ -671,16 +662,12 @@ function motherDetails(motherPrimaryDistrict) {
671662
? [
672663
'amin’ny fokontany',
673664
(this.birthMotherFokontanyCustomAddress || '-') + ',',
674-
675-
// // motherPrimaryDistrict?.toLowerCase().includes('cu toamasina')
676-
// // ? ''
677-
// // :
678-
'kaominina' +
679-
' ' +
680-
(definitionOffice(
681-
replaceByUppercase(motherPrimaryDistrict)
682-
) || '-') +
683-
','
665+
'kaominina' +
666+
' ' +
667+
(definitionOffice(
668+
replaceByUppercase(motherPrimaryDistrict)
669+
) || '-') +
670+
','
684671
]
685672
: [
686673
([

src/form/common/certificate/handlebars/helpers.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -233,13 +233,6 @@ export function eventStatement(): Handlebars.HelperDelegate {
233233
? 'fokontany ' + this.birthChildFokontanyCustomAddress + ','
234234
: '',
235235

236-
// // this.birthChildFokontanyCustomAddress
237-
// // ?.toLowerCase()
238-
// // .includes('toamasina') ||
239-
// // this.placeOfBirthFacility?.toLowerCase().includes('toamasina')
240-
// // ? ''
241-
// // :
242-
// // (this.birthChildFokontanyCustomAddress ? ', ' : '') +
243236
'kaominina',
244237
(definitionOffice(replaceByUppercase(placeOfBirthDistrict)) ||
245238
'-') +
@@ -315,10 +308,6 @@ function fatherDetails(
315308
(this.birthFatherFokontanyCustomAddress ||
316309
this.birthMotherFokontanyCustomAddress ||
317310
'-') + ',',
318-
// // fatherPrimaryDistrict?.toLowerCase().includes('cu toamasina') &&
319-
// // this.birthFatherFokontanyCustomAddress?.toLowerCase().includes('toamasina')
320-
// // ? ''
321-
// // :
322311
'kaominina ' +
323312
(definitionOffice(replaceByUppercase(fatherPrimaryDistrict)) ||
324313
'- ') +
@@ -372,10 +361,6 @@ function motherDetails(
372361
'amin’ny fokontany',
373362
(this.birthMotherFokontanyCustomAddress || '-') + ',',
374363

375-
// // motherPrimaryDistrict?.toLowerCase().includes('cu toamasina')
376-
// // ? // && this.birthMotherFokontanyCustomAddress?.toLowerCase().includes('toamasina')
377-
// // ''
378-
// // :
379364
'kaominina ' +
380365
(definitionOffice(replaceByUppercase(motherPrimaryDistrict)) ||
381366
'-') +
@@ -504,9 +489,6 @@ export function registrationStatement(): Handlebars.HelperDelegate {
504489
this.birthInformantFokontanyCustomAddress || '-'
505490
},`
506491
: '',
507-
// // informantPrimaryDistrict?.toLowerCase().includes('cu toamasina')
508-
// // ? ''
509-
// // :
510492
'kaominina',
511493
(definitionOffice(
512494
replaceByUppercase(informantPrimaryDistrict)

0 commit comments

Comments
 (0)