fix: redirect to /create-username in /submit
This commit is contained in:
parent
cc4f56db7c
commit
70d033b26d
1 changed files with 1 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ export default async function SubmitPage() {
|
||||||
const session = await auth();
|
const session = await auth();
|
||||||
|
|
||||||
if (!session) redirect("/login");
|
if (!session) redirect("/login");
|
||||||
|
if (!session.user.username) redirect("/create-username");
|
||||||
|
|
||||||
return <SubmitForm />;
|
return <SubmitForm />;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue