diff --git a/assets/js/common/api.js b/assets/js/common/api.js index 97f79a71..131888c0 100644 --- a/assets/js/common/api.js +++ b/assets/js/common/api.js @@ -39,7 +39,7 @@ const APIClient = { return new Promise((res, rej) => { this.makeFormDatarequest(uri, data, withLogin, (result) => { if (result.error) - reject(result.error); + rej(result.error); else res(result);