Skip to content

Commit

Permalink
fix: axios upgrade (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
abouolia authored Nov 30, 2023
1 parent d15c589 commit 6091bc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/webapp/src/hooks/useRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ export default function useApiRequest() {
const locale = currentLocale;

if (token) {
request.headers.common['X-Access-Token'] = token;
request.headers['X-Access-Token'] = token;
}
if (organizationId) {
request.headers.common['organization-id'] = organizationId;
request.headers['organization-id'] = organizationId;
}
if (locale) {
request.headers.common['Accept-Language'] = locale;
request.headers['Accept-Language'] = locale;
}
return request;
},
Expand Down

0 comments on commit 6091bc7

Please sign in to comment.