Skip to content

Commit

Permalink
(chore) minor fix and framework update (#47)
Browse files Browse the repository at this point in the history
* (release) update to version 8.1.0 (#46)

* (chore) : minor fix on undefined status and framework updated
  • Loading branch information
donaldkibet committed Oct 23, 2024
1 parent c3e26dd commit 3e99cab
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,15 @@ function useConcepts() {
},
];

const martialStatus: Array<ConceptAnswers> = config.fieldDefinitions
.find((fieldDefinition) => fieldDefinition.id === 'maritalStatus')
.customConceptAnswers.map((concept) => ({ uuid: concept.uuid, display: concept.label }));
const maritalStatusCustomConceptAnswers =
config.fieldDefinitions.find((fieldDefinition) => fieldDefinition.id === 'maritalStatus')?.customConceptAnswers ??
[];

const martialStatus: Array<ConceptAnswers> =
maritalStatusCustomConceptAnswers.map((concept) => ({
uuid: concept?.uuid,
display: concept?.label,
})) ?? [];

return { martialStatus, education, occupation, educationLoad };
}

0 comments on commit 3e99cab

Please sign in to comment.