From 71e50f733a25409900b2eca21af185efc4cab68f Mon Sep 17 00:00:00 2001 From: Matteo Boschi Date: Mon, 30 Nov 2020 15:12:18 +0100 Subject: [PATCH] [#175934342] fix --- ts/sagas/wallet.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ts/sagas/wallet.ts b/ts/sagas/wallet.ts index 085c38eb832..0f7abbee005 100644 --- a/ts/sagas/wallet.ts +++ b/ts/sagas/wallet.ts @@ -323,6 +323,8 @@ function* startOrResumeAddCreditCardSaga( const bpdEnroll: ReturnType = yield select( bpdEnabledSelector ); + // dispatch the action: a new card has been added + yield put(addWalletNewCreditCardSuccess()); // check if the new method is compliant with bpd if (bpdEnabled) { const hasBpdFeature = hasFunctionEnabled( @@ -360,9 +362,6 @@ function* startOrResumeAddCreditCardSaga( return; } } - - // dispatch the action: a new card has been added - yield put(addWalletNewCreditCardSuccess()); if (action.payload.setAsFavorite === true) { yield put(setFavouriteWalletRequest(maybeAddedWallet.idWallet)); }