Skip to content

Commit 85107c5

Browse files
- Fixed an issue with offers being passed as an option instead of the eventDictionary payload
1 parent 5b11758 commit 85107c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ios/MatherAnalytics.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,10 @@ @implementation MatherAnalytics
204204
[event setObject:action forKey:@"action"];
205205
}
206206

207-
// Handles Options
208207
NSArray *offers = [RCTConvert NSArray:payload[@"offers"]];
208+
NSMutableArray *offersArr = [NSMutableArray arrayWithArray:offers];
209209
if (offers) {
210-
[options setObject:offers forKey:@"offers"];
210+
[event setObject:offersArr forKey:@"offers"];
211211
}
212212

213213
/*

0 commit comments

Comments
 (0)