Skip to content

Commit

Permalink
Merge pull request #1142 from Foundation-Devices/ENV-621-fix-stuck
Browse files Browse the repository at this point in the history
ENV-621: quit scanner when account is already connected
  • Loading branch information
icota committed May 23, 2024
2 parents 032388a + 2c330be commit 31ef0c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ui/pages/scanner_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,10 @@ class ScannerPageState extends State<ScannerPage> {
scaffold.showSnackBar(const SnackBar(
content: Text("Account already connected"), // TODO: FIGMA
));
await Future.delayed(const Duration(seconds: 2));
if (mounted) {
OnboardingPage.popUntilGoRoute(context);
}
return;
}

Expand Down

0 comments on commit 31ef0c5

Please sign in to comment.