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 authored Oct 7, 2024
1 parent e357d53 commit 9083c1d
Show file tree
Hide file tree
Showing 2 changed files with 1,436 additions and 1,263 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,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 };
}
Loading

0 comments on commit 9083c1d

Please sign in to comment.