@zeniai/client-epic-state 4.10.47 → 4.10.49

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.
@@ -15,11 +15,11 @@ const initializeInternationalWireLocalDataEpic = (actions$, state$) => actions$.
15
15
  if (billId != null) {
16
16
  const key = (0, billDetailViewState_1.getBillTransactionDetailKey)(billId);
17
17
  billAmount =
18
- (_d = (_c = (_b = (_a = state.editBillDetailViewState.editBillStateById[key]) === null || _a === void 0 ? void 0 : _a.billDetailLocalData) === null || _b === void 0 ? void 0 : _b.totalAmount) === null || _c === void 0 ? void 0 : _c.amount) !== null && _d !== void 0 ? _d : 0;
18
+ (_d = (_c = (_b = (_a = state.editBillDetailViewState.editBillStateById[key]) === null || _a === void 0 ? void 0 : _a.billDetailLocalData) === null || _b === void 0 ? void 0 : _b.recipientTotalAmount) === null || _c === void 0 ? void 0 : _c.amount) !== null && _d !== void 0 ? _d : 0;
19
19
  }
20
20
  else {
21
21
  billAmount =
22
- (_g = (_f = (_e = state.editBillDetailViewState.newBillState.billDetailLocalData) === null || _e === void 0 ? void 0 : _e.totalAmount) === null || _f === void 0 ? void 0 : _f.amount) !== null && _g !== void 0 ? _g : 0;
22
+ (_g = (_f = (_e = state.editBillDetailViewState.newBillState.billDetailLocalData) === null || _e === void 0 ? void 0 : _e.recipientTotalAmount) === null || _f === void 0 ? void 0 : _f.amount) !== null && _g !== void 0 ? _g : 0;
23
23
  }
24
24
  if (existinglocalData == null) {
25
25
  const localDataPayload = {
@@ -13,11 +13,11 @@ const getInternationalWireView = (state, vendorType, billId) => {
13
13
  if (billId != null) {
14
14
  const key = (0, billDetailViewState_1.getBillTransactionDetailKey)(billId);
15
15
  totalAmount =
16
- (_c = (_b = (_a = state.editBillDetailViewState.editBillStateById[key]) === null || _a === void 0 ? void 0 : _a.billDetailLocalData.totalAmount) === null || _b === void 0 ? void 0 : _b.amount) !== null && _c !== void 0 ? _c : 0;
16
+ (_c = (_b = (_a = state.editBillDetailViewState.editBillStateById[key]) === null || _a === void 0 ? void 0 : _a.billDetailLocalData.recipientTotalAmount) === null || _b === void 0 ? void 0 : _b.amount) !== null && _c !== void 0 ? _c : 0;
17
17
  }
18
18
  else {
19
19
  totalAmount =
20
- (_e = (_d = state.editBillDetailViewState.newBillState.billDetailLocalData.totalAmount) === null || _d === void 0 ? void 0 : _d.amount) !== null && _e !== void 0 ? _e : 0;
20
+ (_e = (_d = state.editBillDetailViewState.newBillState.billDetailLocalData.recipientTotalAmount) === null || _d === void 0 ? void 0 : _d.amount) !== null && _e !== void 0 ? _e : 0;
21
21
  }
22
22
  const accountTypeKey = (0, internationalWire_1.getSupportedAccountKey)((_f = localData === null || localData === void 0 ? void 0 : localData.currencyCode) !== null && _f !== void 0 ? _f : '', totalAmount !== null && totalAmount !== void 0 ? totalAmount : 0, vendorType);
23
23
  const dynamicFormDetails = fetchDynamicFormDetails(dynamicFormDetailsbyKey, accountTypeKey);
@@ -13,12 +13,12 @@ const fetchDepositAccountListEpic = (actions$, _state$, zeniAPI) => actions$.pip
13
13
  .pipe((0, operators_1.mergeMap)((response) => {
14
14
  var _a, _b, _c, _d, _e;
15
15
  if ((0, responsePayload_1.isSuccessResponse)(response)) {
16
- return (0, rxjs_1.of)((0, depositAccountReducer_1.updateDepositAccounts)((_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.deposit_accounts) !== null && _b !== void 0 ? _b : []), (0, depositAccountListReducer_1.updateDepositAccountList)({
17
- data: (_d = (_c = response.data) === null || _c === void 0 ? void 0 : _c.deposit_accounts) !== null && _d !== void 0 ? _d : [],
18
- updateType: 'replace',
19
- }), (0, zeniAccountListReducer_1.updateZeniAccountsSummary)({
16
+ return (0, rxjs_1.of)((0, depositAccountReducer_1.updateDepositAccounts)((_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.deposit_accounts) !== null && _b !== void 0 ? _b : []), (0, zeniAccountListReducer_1.updateZeniAccountsSummary)({
20
17
  ZeniAccountsTab: 'zeniAccounts',
21
- summaryPayload: (_e = response.data) === null || _e === void 0 ? void 0 : _e.all_deposit_accounts_summary,
18
+ summaryPayload: (_c = response.data) === null || _c === void 0 ? void 0 : _c.all_deposit_accounts_summary,
19
+ }), (0, depositAccountListReducer_1.updateDepositAccountList)({
20
+ data: (_e = (_d = response.data) === null || _d === void 0 ? void 0 : _d.deposit_accounts) !== null && _e !== void 0 ? _e : [],
21
+ updateType: 'replace',
22
22
  }));
23
23
  }
24
24
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.10.47",
3
+ "version": "4.10.49",
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",