Fixing variable name in condition

parent ec6881aa
...@@ -39,7 +39,7 @@ if (token) { ...@@ -39,7 +39,7 @@ if (token) {
let userApiToken = document.head.querySelector('meta[name="user-api-token"]'); let userApiToken = document.head.querySelector('meta[name="user-api-token"]');
if (token) { if (userApiToken) {
window.axios.defaults.headers.common['Authorization'] = 'Bearer ' + userApiToken.content; window.axios.defaults.headers.common['Authorization'] = 'Bearer ' + userApiToken.content;
} else { } else {
console.error('User API token not found in a meta tag.'); console.error('User API token not found in a meta tag.');
......
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