@zeniai/client-epic-state 4.18.99 → 4.19.0

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.
@@ -103,6 +103,14 @@ const tenant = (0, toolkit_1.createSlice)({
103
103
  draft.fetchState = 'Completed';
104
104
  draft.error = undefined;
105
105
  const [tenantsbyId, tenantIds, firstUser] = mapTenantsPayloadToState(tenants, user);
106
+ // Preserve existing isTreasuryVideoViewed values
107
+ tenantIds.forEach((tenantId) => {
108
+ const existingTenant = draft.tenantsById[tenantId];
109
+ if (existingTenant != null) {
110
+ tenantsbyId[tenantId].isTreasuryVideoViewed =
111
+ existingTenant.isTreasuryVideoViewed;
112
+ }
113
+ });
106
114
  draft.tenantsById = tenantsbyId;
107
115
  draft.tenantIds = tenantIds;
108
116
  draft.loggedInUser = (0, assignWith_1.default)((_a = draft.loggedInUser) !== null && _a !== void 0 ? _a : {}, firstUser, (objValue, srcValue) => srcValue !== null && srcValue !== void 0 ? srcValue : objValue);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.18.99",
3
+ "version": "4.19.0",
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",