@zeniai/client-epic-state 4.10.58 → 4.10.60

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.
@@ -53,7 +53,7 @@ const updateJESchedulesEpic = (actions$) => actions$.pipe((0, operators_1.filter
53
53
  }
54
54
  });
55
55
  });
56
- actions.push((0, accountReducer_1.updateAccounts)(accountsPayload, 'account_list'), (0, classReducer_1.updateClasses)('class_list', classPayload), (0, vendorReducer_1.updateVendors)(vendorPayload));
56
+ actions.push((0, accountReducer_1.updateAccounts)(accountsPayload, 'account_list'), (0, classReducer_1.updateClasses)('class_list', classPayload), (0, vendorReducer_1.updateVendors)(vendorPayload, 'merge'));
57
57
  Object.keys(jeTransactionPerCurrency).forEach((currencyCode) => {
58
58
  const jeTransactions = jeTransactionPerCurrency[currencyCode];
59
59
  actions.push((0, transactionReducer_1.updateScheduleTransactions)(jeTransactions.transactions, jeTransactions.currency.currency_code, jeTransactions.currency.currency_symbol));
@@ -131,7 +131,8 @@ const getFilteredExpenseTrend = (expenseTrend, filter, firstMonthOfFY) => {
131
131
  };
132
132
  exports.getFilteredExpenseTrend = getFilteredExpenseTrend;
133
133
  const getYTDSpend = (months, firstMonthOfFY) => {
134
- const currentDate = months[months.length - 1].endDate;
134
+ var _a, _b;
135
+ const currentDate = (_b = (_a = months[months.length - 1]) === null || _a === void 0 ? void 0 : _a.endDate) !== null && _b !== void 0 ? _b : (0, zeniDayJS_1.dateNow)();
135
136
  const currentYear = currentDate.year();
136
137
  const currentMonth = currentDate.month() + 1;
137
138
  let startYear = currentYear;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.10.58",
3
+ "version": "4.10.60",
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",