release 1.0.2 fixes
parent
4d4ea42c6a
commit
903cc3cb70
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue