@zeniai/client-epic-state 4.8.44 → 4.8.46

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.
@@ -58,7 +58,7 @@ const fetchDashboardEpic = (actions$, state$) => actions$.pipe((0, operators_1.f
58
58
  if (excludeResources.includes('accounts_receivable_aging') === false) {
59
59
  actions.push((0, arAgingReducer_1.fetchArAging)());
60
60
  }
61
- if (isAdmin && !isInvestorBanker) {
61
+ if (excludeResources.includes('zeni_accounts_promo_card') === false) {
62
62
  actions.push((0, zeniAccountsPromoCardReducer_1.fetchZeniAccountsPromoCard)());
63
63
  }
64
64
  if (!isInvestorBanker) {
@@ -142,8 +142,7 @@ const fetchDashboardEpic = (actions$, state$) => actions$.pipe((0, operators_1.f
142
142
  }
143
143
  if (state.zeniAccountsPromoCardState.fetchState !== 'In-Progress' &&
144
144
  !state.zeniAccountsPromoCardState.hasValidState() &&
145
- isAdmin &&
146
- !isInvestorBanker) {
145
+ excludeResources.includes('zeni_accounts_promo_card') === false) {
147
146
  fetchActions.push((0, zeniAccountsPromoCardReducer_1.fetchZeniAccountsPromoCard)());
148
147
  }
149
148
  if (state.billPayCardState.fetchState !== 'In-Progress' &&
@@ -80,7 +80,7 @@ exports.getDashboard = (0, toolkit_1.createSelector)(tenantSelector, cardBalance
80
80
  if (isReimbursementFeatureEnabled === true && isAdmin) {
81
81
  reportsInOrder.push(reimbursementCard);
82
82
  }
83
- if (isAdmin && !isInvestorBanker) {
83
+ if (additionalExcludedReports.includes('zeni_accounts_promo_card') === false) {
84
84
  reportsInOrder.push(zeniAccountsPromoCard);
85
85
  }
86
86
  const fetchState = (0, reduceFetchState_1.reduceFetchState)([...reportsInOrder, tenantState]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.8.44",
3
+ "version": "4.8.46",
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",