From 6e6398cabb9bb913c7832d421f993214a41a72c8 Mon Sep 17 00:00:00 2001 From: Fabrizio Date: Mon, 11 Jan 2021 15:22:15 +0100 Subject: [PATCH 1/2] [#176417281] return to wallet afteer add bpay --- .../bancomatPay/saga/orchestration/addBPayToWallet.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts/features/wallet/onboarding/bancomatPay/saga/orchestration/addBPayToWallet.ts b/ts/features/wallet/onboarding/bancomatPay/saga/orchestration/addBPayToWallet.ts index de5340278c3..7b56a38ff41 100644 --- a/ts/features/wallet/onboarding/bancomatPay/saga/orchestration/addBPayToWallet.ts +++ b/ts/features/wallet/onboarding/bancomatPay/saga/orchestration/addBPayToWallet.ts @@ -70,9 +70,10 @@ export function* addBPayToWalletAndActivateBpd() { if ( currentRoute.isSome() && - currentRoute.value === "WALLET_ADD_PAYMENT_METHOD" + currentRoute.value === "WALLET_ADD_DIGITAL_PAYMENT_METHOD" ) { yield put(NavigationActions.back()); + yield put(NavigationActions.back()); } } From ae8544a1c9db6a1f79140664d3969b42f23bbd61 Mon Sep 17 00:00:00 2001 From: Fabrizio Date: Mon, 11 Jan 2021 15:25:16 +0100 Subject: [PATCH 2/2] [#176417281] update comment --- .../bancomatPay/saga/orchestration/addBPayToWallet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/features/wallet/onboarding/bancomatPay/saga/orchestration/addBPayToWallet.ts b/ts/features/wallet/onboarding/bancomatPay/saga/orchestration/addBPayToWallet.ts index 7b56a38ff41..130f4b0b6b6 100644 --- a/ts/features/wallet/onboarding/bancomatPay/saga/orchestration/addBPayToWallet.ts +++ b/ts/features/wallet/onboarding/bancomatPay/saga/orchestration/addBPayToWallet.ts @@ -62,7 +62,7 @@ export function* addBPayToWalletAndActivateBpd() { ); if (res !== "back") { // integration with the legacy "Add a payment" - // If the payment starts from "WALLET_ADD_PAYMENT_METHOD", remove from stack + // If the payment starts from "WALLET_ADD_DIGITAL_PAYMENT_METHOD", remove from stack // This shouldn't happens if all the workflow will use the executeWorkUnit const currentRoute: ReturnType = yield select( navigationCurrentRouteSelector