This commit is contained in:
Hsing-Yu Flowers 2021-01-27 15:38:46 -05:00 committed by GitHub
parent 20b9b60dd2
commit fc41022dd4
1 changed files with 2 additions and 2 deletions

View File

@ -113,10 +113,10 @@ const CurrencyFactory = ( currencySetting ) => {
localeInfo = {},
currencySymbols = {}
) {
const countryInfo = localeInfo[ countryCode ];
const countryInfo = localeInfo[ countryCode ] || {};
const symbol = currencySymbols[ countryInfo.currency_code ];
if ( ! symbol || ! countryInfo ) {
if ( ! symbol ) {
return {};
}