From a315a31e14631aed5760a2879f7133f2b245426c Mon Sep 17 00:00:00 2001 From: cyan Date: Thu, 28 Nov 2024 19:22:19 +0000 Subject: [PATCH] remove unused code --- lib/src/screens/auth/auth_page.dart | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/lib/src/screens/auth/auth_page.dart b/lib/src/screens/auth/auth_page.dart index 930658395f..e2bc1f0753 100644 --- a/lib/src/screens/auth/auth_page.dart +++ b/lib/src/screens/auth/auth_page.dart @@ -69,7 +69,6 @@ class AuthPagePinCodeStateImpl extends AuthPageState { dismissFlushBar(_authBar); showBar( context, S.of(context).failed_authentication(state.error)); - if (state.error.contains("currupt")) widget.onAuthenticationFinished(false, this); }); } @@ -78,24 +77,8 @@ class AuthPagePinCodeStateImpl extends AuthPageState { WidgetsBinding.instance.addPostFrameCallback((_) async { _pinCodeKey.currentState?.clear(); dismissFlushBar(_authBar); - if (state.error.contains("corrupted wallets seeds")) { - await showPopUp( - context: context, - builder: (BuildContext context) { - return AlertWithTwoActions( - alertTitle: "Corrupted seeds", - alertContent: state.error, - leftButtonText: S.of(context).cancel, - rightButtonText: S.of(context).show_seed, - actionLeftButton: () => Navigator.of(context).pop(), - actionRightButton: () => _showSeedsPopup(context, state.error), - ); - }); - } else { - showBar( - context, S.of(context).failed_authentication(state.error)); - } - + showBar( + context, S.of(context).failed_authentication(state.error)); widget.onAuthenticationFinished(false, this); }); }