release 1.0.2 fixes

4.4
Serik.Uvaissov 2020-06-25 14:36:42 +06:00
parent 4d4ea42c6a
commit 903cc3cb70
3 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ Future<void> checkUserAction(Store<AppState> store) async {
Response<Message> 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(

View File

@ -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);
}

View File

@ -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) {