Skip to content

Commit

Permalink
πŸ› (Analytics): Remove default parameter if set to nil
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed Nov 25, 2024
1 parent 7ebd01a commit 9eb365c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/AnalyticsKit/Sources/Manager/AnalyticsManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ public class AnalyticsManager {
static func setDefaultEventParameter(for parameter: DefaultEventParamters) {
switch parameter {
case let .rootOwnerUid(uid):
Analytics.setDefaultEventParameters(["lk_default_root_owner_uid": uid ?? "(lk_not_set)"])
Analytics.setDefaultEventParameters(["lk_default_root_owner_uid": uid ?? NSNull()])
case let .caregiverUid(uid):
Analytics.setDefaultEventParameters(["lk_default_caregiver_id": uid ?? "(lk_not_set)"])
Analytics.setDefaultEventParameters(["lk_default_caregiver_id": uid ?? NSNull()])
}
}
}

0 comments on commit 9eb365c

Please sign in to comment.