Skip to content

Commit 882272b

Browse files
committed
fix(send): navigate to error for pending payment failure
1 parent 623f4dd commit 882272b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/utils/lightning/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,11 @@ export const subscribeToLightningPayments = ({
647647
title: i18n.t('wallet:toast_payment_failed_title'),
648648
description: i18n.t('wallet:toast_payment_failed_description'),
649649
});
650+
651+
// If the send sheet is open, navigate to the error screen
652+
sendNavigation.navigate('Error', {
653+
errorMessage: i18n.t('wallet:toast_payment_failed_description'),
654+
});
650655
}
651656
},
652657
);

0 commit comments

Comments
 (0)