@tap-payments/auth-jsconnect 2.12.1 → 2.12.2

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.
@@ -373,7 +373,8 @@ export var settingsSlice = createSlice({
373
373
  builder.addCase(fetchAppSettingsSync.fulfilled, function (state, action) {
374
374
  var _a = action.payload, businessCountry = _a.businessCountry, countries = _a.countries, locale = _a.locale, deviceInfo = _a.deviceInfo, isValidOperator = _a.isValidOperator, merchant = _a.merchant, isMaturityExpress = _a.isMaturityExpress, ipCountry = _a.ipCountry;
375
375
  state.data.countries = countries;
376
- state.data.businessCountry = businessCountry;
376
+ if (businessCountry === null || businessCountry === void 0 ? void 0 : businessCountry.iso2)
377
+ state.data.businessCountry = businessCountry;
377
378
  state.data.ipCountry = ipCountry;
378
379
  state.data.locale = locale;
379
380
  state.data.deviceInfo = deviceInfo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.12.1",
3
+ "version": "2.12.2",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",