Skip to content

Commit e43f4fe

Browse files
authored
chore: rename check name
1 parent 6803f49 commit e43f4fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ios/RCTOneSignal/RCTOneSignalEventEmitter.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ @implementation RCTOneSignalEventEmitter {
1010
BOOL _hasSetSubscriptionObserver;
1111
BOOL _hasSetPermissionObserver;
1212
BOOL _hasAddedNotificationClickListener;
13-
BOOL _hasAddedNotificationLifecycleListener;
13+
BOOL _hasAddedNotificationForegroundLifecycleListener;
1414
BOOL _hasAddedInAppMessageClickListener;
1515
BOOL _hasAddedInAppMessageLifecycleListener;
1616
NSMutableDictionary* _preventDefaultCache;
@@ -264,9 +264,9 @@ + (void)sendEventWithName:(NSString *)name withBody:(NSDictionary *)body {
264264
}
265265

266266
RCT_EXPORT_METHOD(addNotificationForegroundLifecycleListener) {
267-
if (!_hasAddedNotificationLifecycleListener) {
267+
if (!_hasAddedNotificationForegroundLifecycleListener) {
268268
[OneSignal.Notifications addForegroundLifecycleListener:self];
269-
_hasAddedNotificationLifecycleListener = true;
269+
_hasAddedNotificationForegroundLifecycleListener = true;
270270
}
271271
}
272272

0 commit comments

Comments
 (0)