@zeniai/client-epic-state 4.10.34 → 4.10.36

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.
@@ -151,7 +151,8 @@ const vendorFirstReviewView = (0, toolkit_1.createSlice)({
151
151
  },
152
152
  updateSavedVendorFirstReviewViewLocalData(draft, action) {
153
153
  const { vendors, vendorId } = action.payload;
154
- if (vendors[0] != null) {
154
+ if (vendors.length > 0 &&
155
+ draft.vendorFirstReviewViewLocalDataById[vendorId] != null) {
155
156
  draft.vendorFirstReviewViewLocalDataById[vendorId].vendorFirstReviewViewLocalData = toVendorReviewViewUpdatedVendorLocalData(vendorId, vendors[0]);
156
157
  }
157
158
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.10.34",
3
+ "version": "4.10.36",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",