Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Fix missing countrycode values
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffmabc committed Jun 3, 2020
1 parent f383191 commit be3cf5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/models/listing/Listing.js
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,9 @@ export default class extends BaseModel {
if (parsedResponse.metadata.shippingFromCountryCode !== '') {
const countries = getIndexedCountries();
const countryCode = parsedResponse.metadata.shippingFromCountryCode;
parsedResponse.metadata.shippingFromCountryName = countries[countryCode].name;
if (countryCode !== undefined) {
parsedResponse.metadata.shippingFromCountryName = countries[countryCode].name;
}
}
}

Expand Down

0 comments on commit be3cf5a

Please sign in to comment.