check for response

This commit is contained in:
Mo Bitar
2017-01-15 16:05:22 -06:00
parent 1499f26d5d
commit 831789c123

View File

@@ -148,7 +148,7 @@ angular.module('app.frontend')
if(!response || response.error) {
var error = response ? response.error : {message: "An unknown error occured."}
this.loginData.status = null;
if(!response.didDisplayAlert) {
if(!response || (response && !response.didDisplayAlert)) {
alert(error.message);
}
} else {