Skip to content

Commit

Permalink
removed console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
wderocco8 committed Sep 1, 2024
1 parent 424a248 commit fe58cca
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/admin/account-settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ export default function AccountSettings() {
<h1 className={AdminTextStyles.title}>Account Settings</h1>
<form className="flex flex-col gap-4" onSubmit={(e) => {
e.preventDefault();
console.log(user);
fetch(`${process.env.NEXT_PUBLIC_API_BASE_URL}/member/${_id}`, {
method: "PUT",
headers: {
Expand Down
1 change: 0 additions & 1 deletion app/admin/events/[eventId]/attendance/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export default function Attendance({ params }: { params: { eventId: string } })
}
);
const data = await response.json();
console.log(data);
setEvent(data);
setIsLoading(false);
};
Expand Down
1 change: 0 additions & 1 deletion app/admin/onboarding/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export default function Onboarding() {
const router = useRouter()
const { token } = useAuth();
const { data: session, status, update } = useSession()
console.log(session)

const [isLoading, setIsLoading] = useState<boolean>(true);
const [name, setName] = useState<string>("");
Expand Down
2 changes: 2 additions & 0 deletions app/contexts/AuthContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export const AuthProvider: React.FC<{ children: ReactNode }> = ({ children }) =>
// Use type assertion to add the 'token' property
const sessionWithToken = session as CustomSession;

console.log("session", sessionWithToken, sessionWithToken.token?.isNewUser);

// Check if user is a newUser
if (sessionWithToken && sessionWithToken.token?.isNewUser === undefined || sessionWithToken.token?.isNewUser) {

Expand Down

0 comments on commit fe58cca

Please sign in to comment.