@zeniai/client-epic-state 5.1.0-betaSS2 → 5.1.0-betaSS3

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.
@@ -951,7 +951,11 @@ const expenseAutomationTransactionsView = createSlice({
951
951
  },
952
952
  updateTotalCountForTransactionCategorization(draft, action) {
953
953
  const { selectedTab, selectedPeriod, totalCount } = action.payload;
954
- draft.transactionCategorizationView[selectedTab].uiState.totalCount[toMonthYearPeriodId(selectedPeriod)] = totalCount;
954
+ const periodId = toMonthYearPeriodId(selectedPeriod);
955
+ draft.transactionCategorizationView[selectedTab].uiState.totalCount[periodId] = totalCount;
956
+ if (selectedTab === 'review') {
957
+ draft.parentTotalCountByTab.review[periodId] = totalCount;
958
+ }
955
959
  },
956
960
  updateParentTotalCountForTab(draft, action) {
957
961
  const { selectedTab, selectedPeriod, parentTotalCount } = action.payload;
@@ -958,7 +958,11 @@ const expenseAutomationTransactionsView = (0, toolkit_1.createSlice)({
958
958
  },
959
959
  updateTotalCountForTransactionCategorization(draft, action) {
960
960
  const { selectedTab, selectedPeriod, totalCount } = action.payload;
961
- draft.transactionCategorizationView[selectedTab].uiState.totalCount[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] = totalCount;
961
+ const periodId = (0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod);
962
+ draft.transactionCategorizationView[selectedTab].uiState.totalCount[periodId] = totalCount;
963
+ if (selectedTab === 'review') {
964
+ draft.parentTotalCountByTab.review[periodId] = totalCount;
965
+ }
962
966
  },
963
967
  updateParentTotalCountForTab(draft, action) {
964
968
  const { selectedTab, selectedPeriod, parentTotalCount } = action.payload;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "5.1.0-betaSS2",
3
+ "version": "5.1.0-betaSS3",
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
  "module": "lib/esm/index.js",