Skip to content

Commit

Permalink
safer handling of super properties
Browse files Browse the repository at this point in the history
  • Loading branch information
zihejia committed Jun 13, 2023
1 parent 6f4e6b0 commit 5ebcc04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/MixpanelReactNative.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ open class MixpanelReactNative: NSObject {
rejecter reject: RCTPromiseRejectBlock) -> Void {
let autoProps = properties // copy
AutomaticProperties.setAutomaticProperties(autoProps)
let propsProcessed = MixpanelTypeHandler.processProperties(properties: properties)
let propsProcessed = MixpanelTypeHandler.processProperties(properties: autoProps)
Mixpanel.initialize(token: token, trackAutomaticEvents: trackAutomaticEvents, flushInterval: Constants.DEFAULT_FLUSH_INTERVAL,
instanceName: token, optOutTrackingByDefault: optOutTrackingByDefault,
superProperties: propsProcessed,
Expand Down

0 comments on commit 5ebcc04

Please sign in to comment.