diff --git a/locales/de/index.yml b/locales/de/index.yml index e7784037b80..e662cac176a 100644 --- a/locales/de/index.yml +++ b/locales/de/index.yml @@ -1381,7 +1381,7 @@ wallet: android: confirm: "Entfernen" successful: "Zahlungsmethode von deinem Konto entfernt!" - failed: "Die Zahlungsmethode kann nicht von deinem Konto entfernt werden" + failed: "Es gab ein Problem, bitte versuche es erneut" newPaymentMethod: add: "Hinzufügen" show: "Anzeigen" @@ -1889,7 +1889,7 @@ cardComponent: lastUsage: "Letzte Verwendung" detailsAndTransactions: "Details und Transaktionen" pick: "Diese Zahlungsmethode verwenden" - removeCta: "Diese Zahlungsmethode entfernen" + removeCta: "Aus Wallet entfernen" messages: accessibility: message: diff --git a/locales/en/index.yml b/locales/en/index.yml index a41d5238275..627c84b0f4b 100644 --- a/locales/en/index.yml +++ b/locales/en/index.yml @@ -1458,7 +1458,7 @@ wallet: android: confirm: Delete successful: Method removed! - failed: The method could not be removed from your Wallet + failed: There was a problem, please try again newPaymentMethod: add: add show: show @@ -2011,7 +2011,7 @@ cardComponent: lastUsage: Last usage detailsAndTransactions: Details and transactions pick: Pay with this method - removeCta: "Delete this payment method" + removeCta: "Remove from Wallet" messages: accessibility: message: diff --git a/locales/it/index.yml b/locales/it/index.yml index b5037e8cc74..a39e05c9da5 100644 --- a/locales/it/index.yml +++ b/locales/it/index.yml @@ -1459,7 +1459,7 @@ wallet: android: confirm: Rimuovi successful: Metodo rimosso! - failed: Impossibile rimuovere il metodo dal tuo Portafoglio + failed: C’è stato un problema, riprova newPaymentMethod: add: aggiungi show: mostra @@ -2012,7 +2012,7 @@ cardComponent: lastUsage: Ultimo utilizzo detailsAndTransactions: Dettagli e transazioni pick: Paga con questo metodo - removeCta: "Elimina questo metodo" + removeCta: "Rimuovi dal Portafoglio" messages: accessibility: message: diff --git a/ts/features/payments/details/saga/handleDeleteWalletDetails.ts b/ts/features/payments/details/saga/handleDeleteWalletDetails.ts index 2701184a2f8..4349ce47210 100644 --- a/ts/features/payments/details/saga/handleDeleteWalletDetails.ts +++ b/ts/features/payments/details/saga/handleDeleteWalletDetails.ts @@ -42,9 +42,7 @@ export function* handleDeleteWalletDetails( action.payload.walletId ); yield* put(successAction); - if (action.payload.onSuccess) { - action.payload.onSuccess(); - } + action.payload.onSuccess?.(); return; } if (deleteWalletResult.right.status !== 401) { @@ -55,9 +53,7 @@ export function* handleDeleteWalletDetails( ) }); yield* put(failureAction); - if (action.payload.onFailure) { - action.payload.onFailure(); - } + action.payload.onFailure?.(); } } else { // cannot decode response @@ -67,13 +63,12 @@ export function* handleDeleteWalletDetails( ) }); yield* put(failureAction); - if (action.payload.onFailure) { - action.payload.onFailure(); - } + action.payload.onFailure?.(); } } catch (e) { yield* put( paymentsGetMethodDetailsAction.failure({ ...getNetworkError(e) }) ); + action.payload.onFailure?.(); } }