Skip to content

Commit

Permalink
fix(iOS): Revert wrong removal of promise resolution (#225)
Browse files Browse the repository at this point in the history
Co-authored-by: Robin Haveneers <robin.haveneers@inthepocket.mobi>
  • Loading branch information
haveneersrobin and Robin Haveneers authored Dec 16, 2021
1 parent 2fb00de commit 89eda2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ios/RNWifi.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 89eda2d

Please sign in to comment.