@zeniai/client-epic-state 4.10.97 → 4.10.99
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.
package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js
CHANGED
|
@@ -47,6 +47,13 @@ const establishPlaidConnectionEpic = (actions$, state, zeniAPI) => actions$.pipe
|
|
|
47
47
|
}),
|
|
48
48
|
(0, plaidAccountViewReducer_1.establishPlaidConnectionSuccess)(primaryFundingAccountId, [...paymentAccountIds, ...existingPaymentAccountIds], linkTokenType, plaidAccountKeyType),
|
|
49
49
|
];
|
|
50
|
+
// if plaidAccountKeyType is not reimbursement_setup but the account added is primary for reimbursement
|
|
51
|
+
// it should be reflected on remi setup page without refresh also
|
|
52
|
+
if (plaidAccountKeyType !== 'reimbursement_setup' &&
|
|
53
|
+
response.data.payment_accounts[0]
|
|
54
|
+
.is_primary_for_reimbursements === true) {
|
|
55
|
+
actions.push((0, plaidAccountViewReducer_1.establishPlaidConnectionSuccess)(primaryFundingAccountId, [...paymentAccountIds, ...existingPaymentAccountIds], linkTokenType, 'reimbursement_setup'));
|
|
56
|
+
}
|
|
50
57
|
if (response.data.bank_accounts != null) {
|
|
51
58
|
const bankAccountIds = response.data.bank_accounts.map((bank_account) => bank_account.bank_account_id);
|
|
52
59
|
actions.push((0, bankAccountReducer_1.updateBankAccounts)(response.data.bank_accounts), (0, userFinancialAccountReducer_1.updateUserBankAccount)({ bankAccountIds, userId }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.99",
|
|
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",
|