From 85107c5c9e341e438808b4790ed7ef5839ff25f4 Mon Sep 17 00:00:00 2001 From: Simon So Date: Fri, 20 Nov 2020 11:29:03 +1300 Subject: [PATCH] - Fixed an issue with offers being passed as an option instead of the eventDictionary payload --- ios/MatherAnalytics.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/MatherAnalytics.m b/ios/MatherAnalytics.m index 9a66bfe..4516950 100644 --- a/ios/MatherAnalytics.m +++ b/ios/MatherAnalytics.m @@ -204,10 +204,10 @@ @implementation MatherAnalytics [event setObject:action forKey:@"action"]; } - // Handles Options NSArray *offers = [RCTConvert NSArray:payload[@"offers"]]; + NSMutableArray *offersArr = [NSMutableArray arrayWithArray:offers]; if (offers) { - [options setObject:offers forKey:@"offers"]; + [event setObject:offersArr forKey:@"offers"]; } /*