Skip to content

Commit

Permalink
Merge pull request #197 from mixpanel/fix-hermes-crash
Browse files Browse the repository at this point in the history
safer handling of super properties
  • Loading branch information
zihejia authored Jun 16, 2023
2 parents b3f46c0 + 5ebcc04 commit 431c556
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 431c556

Please sign in to comment.