diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b9c9c95..6c3e73a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ * Crash reporter has been implemented as an optional subspec * Validating the authenticity of network requests by alternative means to avoid errors raised by 3rd party SDKs mutating and proxying mParticle's original object performing the request * Removed legacy semaphores from network connections +* Fixed a bug referencing commerce event names ## 5.0.2 diff --git a/Pod/Classes/Kits/Kahuna/MPKitKahuna.m b/Pod/Classes/Kits/Kahuna/MPKitKahuna.m index bc48e1d4..9a57b349 100644 --- a/Pod/Classes/Kits/Kahuna/MPKitKahuna.m +++ b/Pod/Classes/Kits/Kahuna/MPKitKahuna.m @@ -160,7 +160,7 @@ - (MPKitExecStatus *)failedToRegisterForUserNotifications:(NSError *)error { } - (MPKitExecStatus *)logCommerceEvent:(MPCommerceEvent *)commerceEvent { - NSString *eventName = self.defaultEventNames[@(commerceEvent.action)]; + NSString *eventName = self.defaultEventNames[@(commerceEvent.type)]; MPKitExecStatus *execStatus; if (!eventName) {