@tap-payments/auth-jsconnect 2.8.72-development → 2.8.73-development
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/app/settings.js
CHANGED
|
@@ -57,7 +57,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
57
57
|
var _a;
|
|
58
58
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
59
59
|
import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint, sortCountries, findCountryByIso2, getRequestHeaders, encryptString, dangerousMessage, getParameterByName, setBaseUrl, getUserLanguage } from '../utils';
|
|
60
|
-
import { BUSINESS_COUNTRIES, DefaultDeviceInfo, LOCAL_STORAGE_KEYS } from '../constants';
|
|
60
|
+
import { BUSINESS_COUNTRIES, DEFAULT_COUNTRY_ISO2, DefaultDeviceInfo, LOCAL_STORAGE_KEYS } from '../constants';
|
|
61
61
|
import i18n from '../i18n';
|
|
62
62
|
import { updateLocale } from '../utils/locale';
|
|
63
63
|
import API, { getAxiosHeaders, setAxiosGlobalHeaders } from '../api';
|
|
@@ -161,8 +161,7 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
|
|
|
161
161
|
ipCountry = undefined;
|
|
162
162
|
if (countryCode)
|
|
163
163
|
businessCountry = findCountryByIso2(countries, countryCode);
|
|
164
|
-
|
|
165
|
-
ipCountry = findCountryByIso2(countries, country_code);
|
|
164
|
+
ipCountry = findCountryByIso2(countries, country_code !== null && country_code !== void 0 ? country_code : DEFAULT_COUNTRY_ISO2);
|
|
166
165
|
if (appConfig.onSettingFetched)
|
|
167
166
|
appConfig.onSettingFetched({
|
|
168
167
|
config: config,
|
package/build/constants/app.d.ts
CHANGED
package/build/constants/app.js
CHANGED