Skip to content

Commit

Permalink
Merge pull request #1262 from get10101/fix-1253-take2
Browse files Browse the repository at this point in the history
fix: GoError: There is nothing to pop when paying with faucet
  • Loading branch information
Restioson authored Sep 8, 2023
2 parents 9ea58d5 + 1aa5e90 commit ffb7766
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions mobile/lib/features/wallet/share_invoice_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,13 @@ class _ShareInvoiceScreenState extends State<ShareInvoiceScreen> {
Padding(
padding: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0),
child: ElevatedButton(
onPressed: () {
// Pop both create invoice screen and share invoice screen
GoRouter.of(context).pop();
GoRouter.of(context).pop();
},
onPressed: _isPayInvoiceButtonDisabled
? null
: () {
// Pop both create invoice screen and share invoice screen
GoRouter.of(context).pop();
GoRouter.of(context).pop();
},
style: ElevatedButton.styleFrom(
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(5.0))),
Expand Down

0 comments on commit ffb7766

Please sign in to comment.