Commit a14c7432 authored by Patricio Bruna's avatar Patricio Bruna

Fixed typos

parent 12fa1369
......@@ -5,6 +5,7 @@ dist
src/config
node_modules
/path.json
./path.json
.npminstall
ncp-debug.log
npm-debug.log
......
module.exports = {"main":{"js":"/531271bundle.js"}}
\ No newline at end of file
module.exports = {"main":{"js":"/516290bundle.js"}}
\ No newline at end of file
......@@ -156,8 +156,8 @@ export function getAllCompanies() {
return new Promise((resolve, reject) => {
return $.ajax({
url,
beforeSend: function(xhrObj) {
xhrObj.setRequestHeader("x-api-token", window.manager_config.user_token);
beforeSend: function setApiToken(xhrObj) {
xhrObj.setRequestHeader('x-api-token', window.manager_config.user_token);
},
dataType: 'json',
success: function onSuccess(data) {
......@@ -175,8 +175,8 @@ export function getCompany(id, success, error) {
return $.ajax({
url,
beforeSend: function(xhrObj) {
xhrObj.setRequestHeader("x-api-token", window.manager_config.user_token);
beforeSend: function setApiToken(xhrObj) {
xhrObj.setRequestHeader('x-api-token', window.manager_config.user_token);
},
dataType: 'json',
success: function onSuccess(data) {
......@@ -193,8 +193,8 @@ export function getInvoices(id, success, error) {
return $.ajax({
url,
beforeSend: function(xhrObj) {
xhrObj.setRequestHeader("x-api-token", window.manager_config.user_token);
beforeSend: function setApiToken(xhrObj) {
xhrObj.setRequestHeader('x-api-token', window.manager_config.user_token);
},
dataType: 'json',
success,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment