Skip to content

Commit

Permalink
fix: addressComponent not working with lookUpPlaceByID
Browse files Browse the repository at this point in the history
  • Loading branch information
aforty committed Jun 26, 2019
1 parent fbf2dee commit a51315b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RNGooglePlaces.m
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ - (void)dealloc
resolver: (RCTPromiseResolveBlock)resolve
rejecter: (RCTPromiseRejectBlock)reject)
{
GMSPlaceField selectedFields = [self getSelectedFields:fields isCurrentOrFetchPlace:true];
GMSPlaceField selectedFields = [self getSelectedFields:fields isCurrentOrFetchPlace:false];

[[GMSPlacesClient sharedClient] fetchPlaceFromPlaceID:placeID placeFields:selectedFields sessionToken:nil
callback:^(GMSPlace * _Nullable place, NSError * _Nullable error) {
Expand Down

0 comments on commit a51315b

Please sign in to comment.