@zeniai/client-epic-state 4.7.88 → 4.7.89

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.
@@ -39,7 +39,7 @@ const getBillList = (state, currentTimePeriod) => {
39
39
  transactions = nonDeletedCurrentTabTransactions.filter((tran) => { var _a; return (_a = tran.dueDate) === null || _a === void 0 ? void 0 : _a.isBefore((0, zeniDayJS_1.dateNow)()); });
40
40
  break;
41
41
  default:
42
- transactions = currentTabTransactions;
42
+ transactions = nonDeletedCurrentTabTransactions;
43
43
  }
44
44
  break;
45
45
  case 'pending_approval':
@@ -63,7 +63,7 @@ const getBillList = (state, currentTimePeriod) => {
63
63
  transactions = currentTabTransactions.filter((tran) => tran.isDeleted);
64
64
  break;
65
65
  default:
66
- transactions = currentTabTransactions;
66
+ transactions = nonDeletedCurrentTabTransactions;
67
67
  }
68
68
  break;
69
69
  case 'scheduled':
@@ -79,7 +79,7 @@ const getBillList = (state, currentTimePeriod) => {
79
79
  transactions = currentTabTransactions.filter((tran) => tran.isDeleted);
80
80
  break;
81
81
  default:
82
- transactions = currentTabTransactions;
82
+ transactions = nonDeletedCurrentTabTransactions;
83
83
  }
84
84
  break;
85
85
  case 'paid':
@@ -94,7 +94,7 @@ const getBillList = (state, currentTimePeriod) => {
94
94
  transactions = currentTabTransactions.filter((tran) => tran.isDeleted);
95
95
  break;
96
96
  default:
97
- transactions = currentTabTransactions;
97
+ transactions = nonDeletedCurrentTabTransactions;
98
98
  }
99
99
  break;
100
100
  }
@@ -211,7 +211,7 @@ const filterReimbursementsBySubtab = (reimbursements, currentSubTab, pendingAppr
211
211
  const nonDeletedReimbursements = reimbursements.filter((tran) => !tran.isDeleted);
212
212
  switch (currentSubTab) {
213
213
  case 'all':
214
- return reimbursements;
214
+ return nonDeletedReimbursements;
215
215
  case 'myDrafts':
216
216
  return nonDeletedReimbursements.filter((tran) => tran.createdBy === loggedInUserId);
217
217
  case 'awaitingApproval':
@@ -234,7 +234,7 @@ const filterReimbursementsBySubtab = (reimbursements, currentSubTab, pendingAppr
234
234
  case 'deleted':
235
235
  return reimbursements.filter((tran) => tran.isDeleted);
236
236
  default:
237
- return reimbursements;
237
+ return nonDeletedReimbursements;
238
238
  }
239
239
  };
240
240
  const getRemiListOnSort = (sortKey, sortOrder, currentTab, reimbursements) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.7.88",
3
+ "version": "4.7.89",
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",