Skip to content

Commit

Permalink
πŸ“ˆ (AccountKit): Add missing logEvent caregiver_select
Browse files Browse the repository at this point in the history
  • Loading branch information
macteuts committed Nov 28, 2024
1 parent 59e9944 commit 0609621
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,13 @@ public class CaregiverManager {
}

public func setCurrentCaregiver(byID id: String) {
let previousCaregiverID: String? = self.currentCaregiver.value?.id
guard let currentCaregiver = self.caregiverList.value.first(where: { $0.id == id }) else {
return
}
self.currentCaregiver.send(currentCaregiver)

AnalyticsManager.logEventCaregiverSelect(from: previousCaregiverID, to: currentCaregiver.id)

Check failure on line 122 in Modules/AccountKit/Sources/Managers/Caregivers/CaregiverManager.swift

View workflow job for this annotation

GitHub Actions / build (true)

value of optional type 'String?' must be unwrapped to a value of type 'String'

Check failure on line 122 in Modules/AccountKit/Sources/Managers/Caregivers/CaregiverManager.swift

View workflow job for this annotation

GitHub Actions / build (false)

value of optional type 'String?' must be unwrapped to a value of type 'String'
AnalyticsManager.setDefaultEventParameterCaregiverUid(currentCaregiver.id)
AnalyticsManager.setUserPropertyCaregiverProfessions(values: currentCaregiver.professions)
}
Expand Down

0 comments on commit 0609621

Please sign in to comment.