From 0d9e0efeccd314df50b10a9fb7490e0d92b77a5d Mon Sep 17 00:00:00 2001 From: Yuriy Dolganov Date: Fri, 5 Jul 2024 11:34:43 +0500 Subject: [PATCH] [ios] fix array resolve in request permission --- ios/RCTOneSignal/RCTOneSignalEventEmitter.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/RCTOneSignal/RCTOneSignalEventEmitter.m b/ios/RCTOneSignal/RCTOneSignalEventEmitter.m index 4221cea4..26a76de3 100644 --- a/ios/RCTOneSignal/RCTOneSignalEventEmitter.m +++ b/ios/RCTOneSignal/RCTOneSignalEventEmitter.m @@ -282,7 +282,7 @@ + (void)sendEventWithName:(NSString *)name withBody:(NSDictionary *)body { requestNotificationPermissionResolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { [OneSignal.Notifications requestPermission:^(BOOL accepted) { - resolve(@[@(accepted)]); + resolve(@(accepted)); } fallbackToSettings:fallbackToSettings]; }