Skip to content

Commit cca01df

Browse files
committed
ios: fix native callback invoked twice
1 parent 01d9b6a commit cca01df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/RNBatch.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,8 @@ -(void)stopObserving {
421421
resolve([NSNull null]);
422422
} else {
423423
reject(@"BatchBridgeError", @"Event attributes validation failed:", err);
424-
return;
425424
}
425+
return;
426426
}
427427
[BatchProfile trackEventWithName:name attributes:batchEventAttributes];
428428
resolve([NSNull null]);

0 commit comments

Comments
 (0)