From 89eda2d126546fcabbe85ad2de8bbee9ba0e793c Mon Sep 17 00:00:00 2001 From: Robin Haveneers Date: Fri, 17 Dec 2021 00:31:42 +0100 Subject: [PATCH] fix(iOS): Revert wrong removal of promise resolution (#225) Co-authored-by: Robin Haveneers --- ios/RNWifi.m | 1 + 1 file changed, 1 insertion(+) diff --git a/ios/RNWifi.m b/ios/RNWifi.m index 912a2eb..345789f 100644 --- a/ios/RNWifi.m +++ b/ios/RNWifi.m @@ -158,6 +158,7 @@ + (BOOL)requiresMainQueueSetup if (@available(iOS 11.0, *)) { [[NEHotspotConfigurationManager sharedManager] removeConfigurationForSSID:ssid]; + resolve(nil); } else { reject([ConnectError code:UnavailableForOSVersion], @"Not supported in iOS<11.0", nil); }