From 882272ba285adf5b99973be171e2694a3e519d92 Mon Sep 17 00:00:00 2001 From: Philipp Walter Date: Thu, 12 Dec 2024 14:36:39 +0100 Subject: [PATCH] fix(send): navigate to error for pending payment failure --- src/utils/lightning/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utils/lightning/index.ts b/src/utils/lightning/index.ts index 79d127387..5292f0843 100644 --- a/src/utils/lightning/index.ts +++ b/src/utils/lightning/index.ts @@ -647,6 +647,11 @@ export const subscribeToLightningPayments = ({ title: i18n.t('wallet:toast_payment_failed_title'), description: i18n.t('wallet:toast_payment_failed_description'), }); + + // If the send sheet is open, navigate to the error screen + sendNavigation.navigate('Error', { + errorMessage: i18n.t('wallet:toast_payment_failed_description'), + }); } }, );