chore: remove console logs

This commit is contained in:
Pablo Lara
2024-08-28 12:29:08 +02:00
parent c0a20b0f5d
commit 0a090b5694
3 changed files with 4 additions and 8 deletions
-2
View File
@@ -33,7 +33,6 @@ export const authConfig = {
callbacks: {
authorized({ auth, request: { nextUrl } }) {
const isLoggedIn = !!auth?.user;
// console.log({ auth }, "llegas o no");
const isOnDashboard = nextUrl.pathname.startsWith("/");
if (isOnDashboard) {
if (isLoggedIn) return true;
@@ -78,7 +77,6 @@ export const authConfig = {
const user = await getUser(email, password);
if (!user) return null;
// console.log({ user });
return user;
},
}),
+2 -4
View File
@@ -42,8 +42,6 @@ export const AuthForm = ({ type }: { type: string }) => {
}
}, [state]);
console.log(state, "el state desde el AuthForm");
const onSubmit = async (data: z.infer<typeof formSchema>) => {
// Do something with the form values
// this will be type-safe and validated
@@ -56,10 +54,10 @@ export const AuthForm = ({ type }: { type: string }) => {
});
}
// if (type === "sign-up") {
// const newUser = await signUpNew(data);
// const newUser = await signUp(data);
// }
} catch (error) {
console.log(error);
console.error(error);
}
};
+2 -2
View File
@@ -21,7 +21,7 @@ export const useLocalStorage = (
setState(JSON.parse(value));
}
} catch (error) {
console.log(error);
console.error(error);
}
}, [key]);
@@ -38,7 +38,7 @@ export const useLocalStorage = (
window.localStorage.setItem(key, JSON.stringify(valueToStore));
setState(valueToStore);
} catch (error) {
console.log(error);
console.error(error);
}
};