Skip to content

Commit

Permalink
- Fixed an issue with offers being passed as an option instead of the…
Browse files Browse the repository at this point in the history
… eventDictionary payload
  • Loading branch information
simonsograbone committed Nov 19, 2020
1 parent 5b11758 commit 85107c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/MatherAnalytics.m
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
}

/*
Expand Down

0 comments on commit 85107c5

Please sign in to comment.