Merge pull request 'increased delay' (#36) from Admin into master
Reviewed-on: http://git.plannaplan.pl/y0rune/frontend/pulls/36 Reviewed-by: wrzesinski-hubert <wrzesinski.hubert@gmail.com>
This commit is contained in:
commit
d65d98dfec
@ -213,7 +213,7 @@ export const CoursesProvider = ({ children }: CoursesProviderProps) => {
|
|||||||
fetchCourses();
|
fetchCourses();
|
||||||
getNewestTimetable();
|
getNewestTimetable();
|
||||||
setIsDataLoading(false);
|
setIsDataLoading(false);
|
||||||
}, 500);
|
}, 600);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -5,6 +5,7 @@ export const axiosInstance = axios.create();
|
|||||||
axiosInstance.interceptors.request.use(
|
axiosInstance.interceptors.request.use(
|
||||||
(config) => {
|
(config) => {
|
||||||
const token = localStorage.getItem('userToken');
|
const token = localStorage.getItem('userToken');
|
||||||
|
|
||||||
config.headers['Content-Type'] = 'application/json';
|
config.headers['Content-Type'] = 'application/json';
|
||||||
config.headers['Authorization'] = token ? `Bearer ${token}` : '';
|
config.headers['Authorization'] = token ? `Bearer ${token}` : '';
|
||||||
return config;
|
return config;
|
||||||
|
Loading…
Reference in New Issue
Block a user