Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(citizenship): error indexing child #17106

Merged
merged 8 commits into from
Dec 4, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ export const getSelectedCustodyChild = (
const custodyChildren = getValueViaPath(
externalData,
'childrenCustodyInformation.data',
undefined,
) as ApplicantChildCustodyInformation[] | undefined
[],
) as ApplicantChildCustodyInformation[]

const childInfo = childNationalId
? custodyChildren?.find((x) => x.nationalId === childNationalId)
: custodyChildren?.[index]
: custodyChildren[index]
berglindoma13 marked this conversation as resolved.
Show resolved Hide resolved

const selectedChildren = (answers as Citizenship).selectedChildren
const isSelected =
Expand Down
Loading