@zeniai/client-epic-state 4.12.43 → 4.12.45

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.
@@ -64,7 +64,7 @@ const doUpdateVendors = (draft, vendors, updateType) => {
64
64
  vendors.forEach((vendorPayload) => {
65
65
  const latestVendor = (0, vendorPayload_1.mapVendorPayloadToVendor)(vendorPayload);
66
66
  if (latestVendor.id in draft && updateType === 'merge') {
67
- (0, assignWith_1.default)(draft[latestVendor.id], latestVendor, (objValue, srcValue) => Boolean(srcValue) === false ? objValue : srcValue); // IMPORTANT: replace the value only when source has valid value. Otherwise keep the existing value!);
67
+ (0, assignWith_1.default)(draft[latestVendor.id], latestVendor, (objValue, srcValue) => srcValue == null ? objValue : srcValue); // IMPORTANT: replace the value only when source has valid value. Otherwise keep the existing value!);
68
68
  }
69
69
  else {
70
70
  draft[latestVendor.id] = latestVendor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.12.43",
3
+ "version": "4.12.45",
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",