@zeniai/client-epic-state 4.16.10 → 4.16.13

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.
@@ -347,17 +347,18 @@ const expenseAutomationTransactionsView = (0, toolkit_1.createSlice)({
347
347
  },
348
348
  fetchTransactionCategorizationSuccess(draft, action) {
349
349
  const { selectedTab } = action.payload;
350
- if (action.payload.refreshViewInBackground === true) {
350
+ if (draft.transactionCategorizationView[selectedTab].fetchState ===
351
+ 'In-Progress') {
352
+ draft.transactionCategorizationView[selectedTab].fetchState =
353
+ 'Completed';
354
+ draft.transactionCategorizationView[selectedTab].error = undefined;
355
+ }
356
+ else {
351
357
  draft.transactionCategorizationView[selectedTab].refreshStatus = {
352
358
  fetchState: 'Completed',
353
359
  error: undefined,
354
360
  };
355
361
  }
356
- else {
357
- draft.transactionCategorizationView[selectedTab].fetchState =
358
- 'Completed';
359
- draft.transactionCategorizationView[selectedTab].error = undefined;
360
- }
361
362
  },
362
363
  resetOtherTabsFetchState(draft, action) {
363
364
  const { tabs, refreshViewInBackground } = action.payload;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.16.10",
3
+ "version": "4.16.13",
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",