diff --git a/lib/features/authentication/authentication_view_model.dart b/lib/features/authentication/authentication_view_model.dart index 904aea2..2906b97 100644 --- a/lib/features/authentication/authentication_view_model.dart +++ b/lib/features/authentication/authentication_view_model.dart @@ -612,9 +612,8 @@ class AuthenticationViewModel extends ChangeNotifier { checkLastLoginStatus(Function() onSuccess) async { - cacheService.getBool(key: CacheConst.quickLoginEnabled); - Future.delayed(Duration(seconds: 1), () { - if(cacheService.getBool(key: CacheConst.quickLoginEnabled) == false) { + Future.delayed(Duration(seconds: 1), () async { + if(cacheService.getBool(key: CacheConst.quickLoginEnabled) == null){ if (_appState.getSelectDeviceByImeiRespModelElement != null && (_appState.getSelectDeviceByImeiRespModelElement!.logInType == 1 || _appState.getSelectDeviceByImeiRespModelElement!.logInType == 4)) { phoneNumberController.text =