Skip to content

Commit

Permalink
Merge pull request Expensify#31173 from DylanDylann/fix/30304-2
Browse files Browse the repository at this point in the history
Fix: re-order fields in address page
  • Loading branch information
robertjchen authored Nov 15, 2023
2 parents e953a65 + 1c7c4a9 commit 8872311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AddressSearch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,14 @@ function AddressSearch(props) {
street2: subpremise,
// Make sure country is updated first, since city and state will be reset if the country changes
country: '',
state: state || stateAutoCompleteFallback,
// When locality is not returned, many countries return the city as postalTown (e.g. 5 New Street
// Square, London), otherwise as sublocality (e.g. 384 Court Street Brooklyn). If postalTown is
// returned, the sublocality will be a city subdivision so shouldn't take precedence (e.g.
// Salagatan, Upssala, Sweden).
city: locality || postalTown || sublocality || cityAutocompleteFallback,
zipCode,

state: state || stateAutoCompleteFallback,
lat: lodashGet(details, 'geometry.location.lat', 0),
lng: lodashGet(details, 'geometry.location.lng', 0),
address: lodashGet(details, 'formatted_address', ''),
Expand Down

0 comments on commit 8872311

Please sign in to comment.