🐛 Fixed more errors coming from upgrading SvelteKit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { redirect } from '@sveltejs/kit';
|
||||
|
||||
export async function load({ parent }) {
|
||||
const { email } = await parent();
|
||||
if (email) {
|
||||
throw redirect(302, '/dashboard');
|
||||
}
|
||||
return {};
|
||||
}
|
||||
Reference in New Issue
Block a user