Skip to content

Commit

Permalink
5011: Cleanup of logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Rool committed Dec 5, 2022
1 parent ea19314 commit 136f34d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 136f34d

Please sign in to comment.