@zeniai/client-epic-state 4.16.12 → 4.16.14

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.
@@ -346,18 +346,20 @@ const expenseAutomationTransactionsView = (0, toolkit_1.createSlice)({
346
346
  },
347
347
  },
348
348
  fetchTransactionCategorizationSuccess(draft, action) {
349
- const { selectedTab } = action.payload;
350
- if (action.payload.refreshViewInBackground === true) {
349
+ const { selectedTab, refreshViewInBackground } = action.payload;
350
+ if (draft.transactionCategorizationView[selectedTab].fetchState ===
351
+ 'In-Progress' ||
352
+ refreshViewInBackground !== true) {
353
+ draft.transactionCategorizationView[selectedTab].fetchState =
354
+ 'Completed';
355
+ draft.transactionCategorizationView[selectedTab].error = undefined;
356
+ }
357
+ else {
351
358
  draft.transactionCategorizationView[selectedTab].refreshStatus = {
352
359
  fetchState: 'Completed',
353
360
  error: undefined,
354
361
  };
355
362
  }
356
- else {
357
- draft.transactionCategorizationView[selectedTab].fetchState =
358
- 'Completed';
359
- draft.transactionCategorizationView[selectedTab].error = undefined;
360
- }
361
363
  },
362
364
  resetOtherTabsFetchState(draft, action) {
363
365
  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.12",
3
+ "version": "4.16.14",
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",