diff --git a/app/src/main/java/it/ministerodellasalute/verificaC19/ui/main/verification/VerificationFragment.kt b/app/src/main/java/it/ministerodellasalute/verificaC19/ui/main/verification/VerificationFragment.kt index 83c08b32..3f8182fa 100644 --- a/app/src/main/java/it/ministerodellasalute/verificaC19/ui/main/verification/VerificationFragment.kt +++ b/app/src/main/java/it/ministerodellasalute/verificaC19/ui/main/verification/VerificationFragment.kt @@ -226,7 +226,11 @@ class VerificationFragment : Fragment(), View.OnClickListener { } private fun setPersonData(person: PersonModel?, dateOfBirth: String?) { - binding.nameStandardisedText.text = person?.familyName.plus(" ").plus(person?.givenName) + if (person?.familyName.isNullOrEmpty()) { + binding.nameStandardisedText.text = person?.standardisedFamilyName.plus(" ").plus(person?.standardisedGivenName).plus(" ").plus(person?.givenName) + } else { + binding.nameStandardisedText.text = person?.familyName.plus(" ").plus(person?.givenName) + } binding.birthdateText.text = dateOfBirth?.formatDateOfBirth().orEmpty() }