[React Native] Fix incorrect if-statement in RCTGeolocation
This commit is contained in:
parent
20291a02df
commit
293b9b9a7f
|
@ -209,7 +209,7 @@ static NSDictionary *RCTPositionError(RCTPositionErrorCode code, NSString *msg /
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (![CLLocationManager authorizationStatus] == kCLAuthorizationStatusDenied) {
|
if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusDenied) {
|
||||||
if (errorBlock) {
|
if (errorBlock) {
|
||||||
errorBlock(@[
|
errorBlock(@[
|
||||||
RCTPositionError(RCTPositionErrorDenied, nil)
|
RCTPositionError(RCTPositionErrorDenied, nil)
|
||||||
|
|
Loading…
Reference in New Issue