Skip to content

Commit 2673fb8

Browse files
committed
Delete trash code from APIfrontend
1 parent c7f8565 commit 2673fb8

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

entregable4-frontend-2-main/src/auth/pages/Login/Login.component.jsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,6 @@ const Login = () => {
3636
message: "Unexpected error, please try again",
3737
}))
3838
}
39-
40-
/*catch (error) {
41-
if(error.response.status === 401) {
42-
dispatch(showNotification({
43-
variant: "danger",
44-
message: "Invalid credentials",
45-
}));
46-
}*/
4739
} finally { setIsLoading(false); }
4840
}
4941

entregable4-frontend-2-main/src/utils/axios.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ axios.interceptors.request.use(function (config) {
1212
config.headers.Authorization = `Bearer ${token}`;
1313
}
1414
return config;
15-
16-
/*if(config.headers?.Authorization) return config;
17-
config.headers.Authorization = `Bearer ${token}`;
18-
return config;*/
1915
});
2016

2117
axios.interceptors.response.use((res) => {

0 commit comments

Comments
 (0)