From 5a36150a5f9675164db391982083dd4010efedab Mon Sep 17 00:00:00 2001 From: Peter Jenkins Date: Tue, 6 Mar 2018 10:34:59 -0500 Subject: [PATCH] Fix iOS transaction attributes conversion --- Assets/Plugins/iOS/mParticleUnity.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Plugins/iOS/mParticleUnity.m b/Assets/Plugins/iOS/mParticleUnity.m index 59fa31e..c609991 100644 --- a/Assets/Plugins/iOS/mParticleUnity.m +++ b/Assets/Plugins/iOS/mParticleUnity.m @@ -304,7 +304,7 @@ + (MPPromotion *)MPPromotion:(id)json { } + (MPTransactionAttributes *)MPTransactionAttributes:(id)json { - MPTransactionAttributes *transactionAttributes; + MPTransactionAttributes *transactionAttributes = [[MPTransactionAttributes alloc] init]; transactionAttributes.affiliation = json[@"Affiliation"]; transactionAttributes.couponCode = json[@"CouponCode"]; transactionAttributes.shipping = json[@"Shipping"];