remove logs
This commit is contained in:
parent
3c09d0947f
commit
a41cb3fc9e
|
@ -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)}`,
|
||||
|
|
Loading…
Reference in a new issue