Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/components/AddressSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,14 @@ const AddressSearch = (props) => {
administrative_area_level_1: 'long_name',
});

// Make sure that the order of keys remains such that the country is always set above the state.
// Refer to https://github.com/Expensify/App/issues/15633 for more information.
const values = {
street: props.value ? props.value.trim() : '',
city: city || cityFallback,
zipCode,
state,
country: '',
state,
Comment thread
techievivek marked this conversation as resolved.
Resolved
};

// If the address is not in the US, use the full length state name since we're displaying the address's
Expand Down