mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
Hack for display login issue
This commit is contained in:
parent
52c5d11787
commit
4e4cd08135
3 changed files with 22 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue