We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 228f7f7 + ef1f1e7 commit 87dcdfaCopy full SHA for 87dcdfa
src/form/v2/birth/forms/pages/father.ts
@@ -360,7 +360,7 @@ export const father = defineFormPage({
360
{
361
type: ConditionalType.SHOW,
362
conditional: and(
363
- not(field('mother.detailsNotAvailable').isEqualTo(true)),
+ field('mother.detailsNotAvailable').isFalsy(),
364
field('father.detailsNotAvailable').isFalsy()
365
)
366
},
@@ -385,10 +385,7 @@ export const father = defineFormPage({
385
386
387
requireFatherDetails,
388
- or(
389
- field('mother.detailsNotAvailable').isEqualTo(true),
390
- field('father.addressSameAs').isEqualTo(YesNoTypes.NO)
391
- )
+ not(field('father.addressSameAs').isEqualTo(YesNoTypes.YES))
392
393
}
394
],
0 commit comments