From 903cc3cb70a3b2227f9e566c86c0cd580a44b026 Mon Sep 17 00:00:00 2001 From: "Serik.Uvaissov" Date: Thu, 25 Jun 2020 14:36:42 +0600 Subject: [PATCH] release 1.0.2 fixes --- lib/redux/actions/user_actions.dart | 2 +- lib/redux/state/setting_state.dart | 2 +- lib/views/login/login_view.dart | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/redux/actions/user_actions.dart b/lib/redux/actions/user_actions.dart index e6414f2..8a2f375 100644 --- a/lib/redux/actions/user_actions.dart +++ b/lib/redux/actions/user_actions.dart @@ -36,7 +36,7 @@ Future checkUserAction(Store store) async { Response session = await _api.isActive(token); isAuthenticated = "OK" == session.body.message; } else { - await Future.delayed(Duration(milliseconds: 100)); + await Future.delayed(Duration(milliseconds: 2000)); } store.dispatch( SetUserStateAction( diff --git a/lib/redux/state/setting_state.dart b/lib/redux/state/setting_state.dart index 33797bd..dd5bb1a 100644 --- a/lib/redux/state/setting_state.dart +++ b/lib/redux/state/setting_state.dart @@ -11,7 +11,7 @@ class SettingState { //read hive factory SettingState.initial(SettingState payload) { return SettingState( - mode: payload?.mode ?? SettingModeCalc, + mode: payload?.mode ?? SettingModeKassa, tradeType: payload?.tradeType ?? SettingTradeTypeGood); } diff --git a/lib/views/login/login_view.dart b/lib/views/login/login_view.dart index 8c14fe8..f87035f 100644 --- a/lib/views/login/login_view.dart +++ b/lib/views/login/login_view.dart @@ -117,7 +117,7 @@ class LoginView extends StatelessWidget { if (result.type == ResultType.Barcode && result.rawContent?.length == 60) { Redux.store.dispatch(authenticateToken(result.rawContent)); - } else { + } else if (result.type == ResultType.Error ) { _dialogService.showDialog(description: 'Не верный формат QR кода'); } } on PlatformException catch (e) {