Skip to content

Commit

Permalink
fix: remove duplicated log
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyLv committed Mar 5, 2023
1 parent 55ecc7b commit 76724be
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion components/SignIn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { FADE_IN_ANIMATION_SETTINGS } from "~/utils/constants";

export default function SignIn() {
const user = useUser();
console.log("========user========", user);
const { SignInModal, setShowSignInModal } = useSignInModal();
/*useEffect(() => {
async function loadData() {
Expand Down
3 changes: 1 addition & 2 deletions components/user-dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default function UserDropdown() {
// const { data: session } = useSession();
const user = useUser();
const supabaseClient = useSupabaseClient();
console.log("============", { user });
const { email, user_metadata } = user || {};
const image = user_metadata?.avatar_url;
const [openPopover, setOpenPopover] = useState(false);
Expand All @@ -19,7 +18,7 @@ export default function UserDropdown() {

async function signOut(param: { redirect: boolean }) {
const { error } = await supabaseClient.auth.signOut();
console.log("============", { error });
error && console.error("=======sign out error=====", { error });
}

return (
Expand Down

1 comment on commit 76724be

@vercel
Copy link

@vercel vercel bot commented on 76724be Mar 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.