mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-24 06:48:38 +02:00
Hack for display login issue
This commit is contained in:
@@ -7,13 +7,19 @@ import 'package:cake_wallet/store/authentication_store.dart';
|
||||
|
||||
ReactionDisposer _onAuthenticationStateChange;
|
||||
|
||||
dynamic loginError;
|
||||
|
||||
void startAuthenticationStateChange(AuthenticationStore authenticationStore,
|
||||
@required GlobalKey<NavigatorState> navigatorKey) {
|
||||
_onAuthenticationStateChange ??= autorun((_) async {
|
||||
final state = authenticationStore.state;
|
||||
|
||||
if (state == AuthenticationState.installed) {
|
||||
await loadCurrentWallet();
|
||||
try {
|
||||
await loadCurrentWallet();
|
||||
} catch(e) {
|
||||
loginError = e;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user