Fix issue with handling service call exceptions

This commit is contained in:
Yegor Vialov
2019-11-28 19:14:50 +00:00
parent dcf5efddd1
commit 7c18454de3
2 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,7 @@ class MobileAppIntegrationManager {
}
completer.complete();
}).catchError((e) {
if (e['code'] != null && e['code'] == 410) {
if (e is http.Response && e.statusCode == 410) {
Logger.e("MobileApp integration was removed");
_askToRegisterApp();
} else {