Slightly better handling of errors when loading account status
This commit is contained in:
parent
a4b810f16b
commit
d3c79c7865
@ -24,9 +24,11 @@ function checkAccountStatus(callback) {
|
|||||||
callback("badstate");
|
callback("badstate");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
router.back();
|
||||||
app.dialog.alert(resp.msg, "Error");
|
app.dialog.alert(resp.msg, "Error");
|
||||||
}
|
}
|
||||||
}, function (err) {
|
}, function (err) {
|
||||||
|
router.back();
|
||||||
app.dialog.alert("Something went wrong. Try again later.", "Error");
|
app.dialog.alert("Something went wrong. Try again later.", "Error");
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user