[React Native] Fix incorrect if-statement in RCTGeolocation

This commit is contained in:
Alex Akers 2015-03-26 04:44:38 -07:00
parent 20291a02df
commit 293b9b9a7f
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ static NSDictionary *RCTPositionError(RCTPositionErrorCode code, NSString *msg /
}
}
if (![CLLocationManager authorizationStatus] == kCLAuthorizationStatusDenied) {
if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusDenied) {
if (errorBlock) {
errorBlock(@[
RCTPositionError(RCTPositionErrorDenied, nil)