mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: remove console logs
This commit is contained in:
parent
2683501f82
commit
62bba02561
3 changed files with 0 additions and 4 deletions
|
|
@ -36,7 +36,6 @@ function ProfileArea() {
|
||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
checkAuth();
|
checkAuth();
|
||||||
console.log("pathname", pathname);
|
|
||||||
}, [pathname]);
|
}, [pathname]);
|
||||||
|
|
||||||
async function checkAuth() {
|
async function checkAuth() {
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,6 @@ function CreateCourseModal({ closeModal, orgslug }: any) {
|
||||||
// window.location.reload();
|
// window.location.reload();
|
||||||
} else {
|
} else {
|
||||||
alert("Error creating course, please see console logs");
|
alert("Error creating course, please see console logs");
|
||||||
console.log(status);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@ const AuthProvider = ({ children }: any) => {
|
||||||
const [auth, setAuth] = React.useState<Auth>({ access_token: "", isAuthenticated: false, userInfo: {}, isLoading: true });
|
const [auth, setAuth] = React.useState<Auth>({ access_token: "", isAuthenticated: false, userInfo: {}, isLoading: true });
|
||||||
|
|
||||||
function deleteCookie(cookieName: string) {
|
function deleteCookie(cookieName: string) {
|
||||||
console.log("Deleting cookie: " + cookieName);
|
|
||||||
document.cookie = cookieName + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
document.cookie = cookieName + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -70,7 +69,6 @@ const AuthProvider = ({ children }: any) => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
checkRefreshToken();
|
checkRefreshToken();
|
||||||
checkAuth();
|
checkAuth();
|
||||||
console.log("pathname", pathname);
|
|
||||||
return () => {
|
return () => {
|
||||||
auth.isLoading = false;
|
auth.isLoading = false;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue