Skip to content

Commit 1c4cfaf

Browse files
BrandonStalnakerwillpassidomo
authored andcommitted
fix: fix If around shouldUploadEvent (#51)
1 parent eeb48dd commit 1c4cfaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/RNMParticle/RNMParticle.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ + (MPCommerceEvent *)MPCommerceEvent:(id)json {
416416
commerceEvent.action = [RCTConvert MPCommerceEventAction:json[@"productActionType"]];
417417
commerceEvent.checkoutStep = [json[@"checkoutStep"] intValue];
418418
commerceEvent.nonInteractive = [json[@"nonInteractive"] boolValue];
419-
if json[@"shouldUploadEvent"] != nil {
419+
if (json[@"shouldUploadEvent"] != nil) {
420420
event.shouldUploadEvent = [json[@"shouldUploadEvent"] boolValue]
421421
}
422422

@@ -605,7 +605,7 @@ + (MPEvent *)MPEvent:(id)json {
605605
event.name = json[@"name"];
606606
event.startTime = json[@"startTime"];
607607
event.type = [json[@"type"] intValue];
608-
if json[@"shouldUploadEvent"] != nil {
608+
if (json[@"shouldUploadEvent"] != nil) {
609609
event.shouldUploadEvent = [json[@"shouldUploadEvent"] boolValue]
610610
}
611611

0 commit comments

Comments
 (0)