Skip to content

Commit

Permalink
PI-2521: Do not default selfDescribedGender to gender (#4225)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmcphee77 authored Sep 13, 2024
1 parent cc894e5 commit ce8281e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ fun DocumentEntity?.toPreviousConviction() = PreviousConviction(convictionDate =

fun Person.toProfile(previousConviction: DocumentEntity?) = OffenderProfile(
genderIdentity = genderIdentity?.description,
selfDescribedGender = genderIdentityDescription ?: genderIdentity?.description,
selfDescribedGender = genderIdentityDescription,
disabilities = disabilities.filter { d -> !d.softDeleted }.sortedBy { it.startDate }.reversed().map {
it.toDisability()
}.takeIf { disabilities.isNotEmpty() },
Expand Down

0 comments on commit ce8281e

Please sign in to comment.