Skip to content

Commit

Permalink
Merging parameters with existing
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Bruź authored and Piotr Bruź committed Nov 30, 2023
1 parent 5165a8c commit eecf63f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/SegmentFirebase/FirebaseDestination.swift
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ public class FirebaseDestination: DestinationPlugin {
var parameters: [String: Any] = [FirebaseAnalytics.AnalyticsParameterScreenName: eventName]

if let properties = event.properties?.dictionaryValue {
parameters = returnMappedFirebaseParameters(properties, for: FirebaseDestination.mappedKeys)
let propertiesParameters = returnMappedFirebaseParameters(properties, for: FirebaseDestination.mappedKeys)
parameters = parameters.merging(propertiesParameters) { (current, _) in current }
}

if let campaign = event.context?.dictionaryValue?["campaign"] as? [String: Any] {
Expand Down

0 comments on commit eecf63f

Please sign in to comment.