Skip to content

Commit

Permalink
fix(send): navigate to error for pending payment failure
Browse files Browse the repository at this point in the history
  • Loading branch information
pwltr committed Dec 12, 2024
1 parent 623f4dd commit 882272b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils/lightning/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
});
}
},
);
Expand Down

0 comments on commit 882272b

Please sign in to comment.