@tap-payments/auth-jsconnect 2.4.58-test → 2.4.59-test

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.
@@ -140,9 +140,11 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
140
140
  isValidOperator = operator === 'valid';
141
141
  countries = sortCountries(list);
142
142
  countryCode = appConfig.businessCountryCode;
143
+ if (maturity === 'express' && (merchant === null || merchant === void 0 ? void 0 : merchant.country_code))
144
+ countryCode = merchant === null || merchant === void 0 ? void 0 : merchant.country_code;
143
145
  isKWOrSA = isKW(countryCode) || isSA(countryCode);
144
146
  if (!isKWOrSA)
145
- countryCode = 'SA';
147
+ countryCode = 'KW';
146
148
  businessCountry = findCountryByIso2(countries, countryCode);
147
149
  if (!businessCountry)
148
150
  throw new Error('Business country not found, you have to pass a valid business country code in the lib config');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.4.58-test",
3
+ "version": "2.4.59-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",