increased delay
This commit is contained in:
parent
f7a3ab53c5
commit
39a7e109c8
@ -213,7 +213,7 @@ export const CoursesProvider = ({ children }: CoursesProviderProps) => {
|
||||
fetchCourses();
|
||||
getNewestTimetable();
|
||||
setIsDataLoading(false);
|
||||
}, 500);
|
||||
}, 600);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
|
@ -5,6 +5,7 @@ export const axiosInstance = axios.create();
|
||||
axiosInstance.interceptors.request.use(
|
||||
(config) => {
|
||||
const token = localStorage.getItem('userToken');
|
||||
|
||||
config.headers['Content-Type'] = 'application/json';
|
||||
config.headers['Authorization'] = token ? `Bearer ${token}` : '';
|
||||
return config;
|
||||
|
Loading…
Reference in New Issue
Block a user