1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2025-07-01 12:08:37 -04:00

Actually dispatch errors

This commit is contained in:
2017-01-03 05:32:19 -05:00
parent ce6660b575
commit 4f940b31a1
4 changed files with 28 additions and 28 deletions

View File

@ -38,7 +38,7 @@ function search(searchString, searchType, limit) {
var e = new Error();
e.fromJSON(data);
if (e.isError()) {
ErrorActions.serverError(e);
dispatch(ErrorActions.serverError(e));
} else if (data.securities == null) {
dispatch(securityTemplatesSearched(searchString, searchType, new Array()));
} else {
@ -51,7 +51,7 @@ function search(searchString, searchType, limit) {
}
},
error: function(jqXHR, status, error) {
ErrorActions.ajaxError(e);
dispatch(ErrorActions.ajaxError(e));
}
});
};