remove logs

This commit is contained in:
Erin 2023-11-12 14:12:11 -05:00
parent 3c09d0947f
commit a41cb3fc9e

View file

@ -3,11 +3,9 @@ import type {LayoutLoad} from './$types';
export const load: LayoutLoad = ({data, url}) => {
// logged in (user exists), but username is unset - complete profile first
console.log(data.user);
if (data.user && data.user.name == null) {
// don't redirect forever if we're already on this page
if (url.pathname !== '/profile/create') {
console.log('bad');
throw redirect(
302,
`/profile/create?next=${encodeURIComponent(url.href)}`,