From c9258b5b86365fc6d79d710bdddf3495853b3a14 Mon Sep 17 00:00:00 2001 From: Dalmo Cirne Date: Sat, 7 Nov 2015 08:07:07 -0500 Subject: [PATCH] Fixed a bug referencing commerce event names --- CHANGELOG.md | 1 + Pod/Classes/Kits/Kahuna/MPKitKahuna.m | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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) {