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}) => { export const load: LayoutLoad = ({data, url}) => {
// logged in (user exists), but username is unset - complete profile first // logged in (user exists), but username is unset - complete profile first
console.log(data.user);
if (data.user && data.user.name == null) { if (data.user && data.user.name == null) {
// don't redirect forever if we're already on this page // don't redirect forever if we're already on this page
if (url.pathname !== '/profile/create') { if (url.pathname !== '/profile/create') {
console.log('bad');
throw redirect( throw redirect(
302, 302,
`/profile/create?next=${encodeURIComponent(url.href)}`, `/profile/create?next=${encodeURIComponent(url.href)}`,