From 136f34d0b83f83a1978dbdf3c7641e4a8df755c2 Mon Sep 17 00:00:00 2001 From: Rool Paap Date: Mon, 5 Dec 2022 09:37:43 +0100 Subject: [PATCH] 5011: Cleanup of logic --- .../Event/Details/RemoteEventDetailsGenerator.swift | 12 ++++++------ project.yml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Sources/CTR/Interface/Holder/Event/Details/RemoteEventDetailsGenerator.swift b/Sources/CTR/Interface/Holder/Event/Details/RemoteEventDetailsGenerator.swift index ae461b59c..cb2feb5fc 100644 --- a/Sources/CTR/Interface/Holder/Event/Details/RemoteEventDetailsGenerator.swift +++ b/Sources/CTR/Interface/Holder/Event/Details/RemoteEventDetailsGenerator.swift @@ -148,12 +148,12 @@ class VaccinationDetailsGenerator { var vaccineDisplayName: String? var vaccineType: String? var vaccineManufacturer: String? - if let hpkCode = event.vaccination?.hpkCode, !hpkCode.isEmpty { - let hpkData = mappingManager.getHpkData(hpkCode) - vaccinName = mappingManager.getVaccinationBrand(hpkData?.medicalProduct) - vaccineType = mappingManager.getVaccinationType(hpkData?.vaccineOrProphylaxis) - vaccineManufacturer = mappingManager.getVaccinationManufacturer(hpkData?.marketingAuthorizationHolder) - vaccineDisplayName = hpkData?.displayName + if let hpkCode = event.vaccination?.hpkCode, + let hpkData = mappingManager.getHpkData(hpkCode) { + vaccinName = mappingManager.getVaccinationBrand(hpkData.medicalProduct) + vaccineType = mappingManager.getVaccinationType(hpkData.vaccineOrProphylaxis) + vaccineManufacturer = mappingManager.getVaccinationManufacturer(hpkData.marketingAuthorizationHolder) + vaccineDisplayName = hpkData.displayName } if vaccinName == nil, let brand = event.vaccination?.brand { diff --git a/project.yml b/project.yml index 18017487d..d5495d7b6 100644 --- a/project.yml +++ b/project.yml @@ -96,7 +96,7 @@ targetTemplates: ENABLE_BITCODE: false # because it's deprecated configs: Development: - NETWORK_CONFIGURATION: DEV + NETWORK_CONFIGURATION: TEST VALIDATE_PRODUCT: NO LOG_LEVEL: debug OTHER_LDFLAGS: -Xlinker -interposable -weak_framework SwiftUI # all for Inject