Skip to content

Commit

Permalink
Use the correct value for 'age_in_years' PID attribute. (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzarras authored Oct 30, 2024
1 parent b090631 commit 953becb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private fun selectivelyDisclosed(
val nationalities = buildJsonArray { add(it.value) }
sd(OidcAssuranceNationalities.name, nationalities)
}
pid.ageBirthYear?.let { sd(Attributes.AgeInYears.name, it.value) }
pid.ageInYears?.let { sd(Attributes.AgeInYears.name, it.toInt()) }
pid.ageBirthYear?.let { sd(Attributes.BirthDateYear.name, it.value.toString()) }
pid.familyNameBirth?.let { sd(OidcAssuranceBirthFamilyName.name, it.value) }
pid.givenNameBirth?.let { sd(OidcAssuranceBirthGivenName.name, it.value) }
Expand Down

0 comments on commit 953becb

Please sign in to comment.