@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.
@@ -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
- if (country_code)
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,
@@ -9,6 +9,7 @@ export declare const LOCAL_STORAGE_KEYS: {
9
9
  languageMode: string;
10
10
  };
11
11
  export declare const SCOPE_AUTH = "auth";
12
+ export declare const DEFAULT_COUNTRY_ISO2 = "KW";
12
13
  export declare const EXTERNAL_LINKS: {
13
14
  TOS_EN: string;
14
15
  TOS_AR: string;
@@ -9,6 +9,7 @@ export var LOCAL_STORAGE_KEYS = {
9
9
  languageMode: 'languageMode'
10
10
  };
11
11
  export var SCOPE_AUTH = 'auth';
12
+ export var DEFAULT_COUNTRY_ISO2 = 'KW';
12
13
  export var EXTERNAL_LINKS = {
13
14
  TOS_EN: '/en/terms-conditions',
14
15
  TOS_AR: '/ar/terms-conditions',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.8.72-development",
3
+ "version": "2.8.73-development",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",