Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCyjaneK committed Nov 28, 2024
1 parent d0d398c commit a315a31
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions lib/src/screens/auth/auth_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ class AuthPagePinCodeStateImpl extends AuthPageState<AuthPage> {
dismissFlushBar(_authBar);
showBar<void>(
context, S.of(context).failed_authentication(state.error));
if (state.error.contains("currupt"))
widget.onAuthenticationFinished(false, this);
});
}
Expand All @@ -78,24 +77,8 @@ class AuthPagePinCodeStateImpl extends AuthPageState<AuthPage> {
WidgetsBinding.instance.addPostFrameCallback((_) async {
_pinCodeKey.currentState?.clear();
dismissFlushBar(_authBar);
if (state.error.contains("corrupted wallets seeds")) {
await showPopUp<void>(
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<void>(
context, S.of(context).failed_authentication(state.error));
}

showBar<void>(
context, S.of(context).failed_authentication(state.error));
widget.onAuthenticationFinished(false, this);
});
}
Expand Down

0 comments on commit a315a31

Please sign in to comment.