1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2025-06-13 13:39:23 -04:00

Ensure default currency isn't modified to be a non-currency

This commit is contained in:
2017-06-21 21:53:01 -04:00
parent 4e73e8b508
commit a42e051f74
4 changed files with 43 additions and 6 deletions

View File

@ -32,6 +32,17 @@ function clientError(error) {
};
}
function userError(error) {
var e = new Error();
e.ErrorId = 999;
e.ErrorString = error;
return {
type: ErrorConstants.ERROR_USER,
error: e
};
}
function clearError() {
return {
type: ErrorConstants.CLEAR_ERROR,
@ -42,5 +53,6 @@ module.exports = {
serverError: serverError,
ajaxError: ajaxError,
clientError: clientError,
userError: userError,
clearError: clearError
};