maybe fixed error shit

This commit is contained in:
Kima 2023-10-08 11:33:09 +02:00
parent 9d20d08838
commit b6d4ac6168

View File

@ -79,11 +79,12 @@ class StatusProvider extends ChangeNotifier {
} }
} }
if (_stack.contains(Status.network)) return;
if (res.body == "invalid_grant" || if (res.body == "invalid_grant" ||
res.body.replaceAll(' ', '') == '' || res.body.replaceAll(' ', '') == '' ||
res.statusCode == 400) { (res.statusCode == 400 &&
if (!_stack.contains(Status.apiError)) { res.request?.url.path == 'ellenorzo/V3/Sajat/TanuloAdatlap')) {
if (!_stack.contains(Status.apiError) &&
!_stack.contains(Status.network)) {
_stack.insert(0, Status.apiError); _stack.insert(0, Status.apiError);
notifyListeners(); notifyListeners();
} }