This commit is contained in:
parent
64e5fd3354
commit
a223fc709e
@ -10,7 +10,7 @@ export default async function WritePage({
|
|||||||
params: Promise<{ slug: string[] | undefined }>;
|
params: Promise<{ slug: string[] | undefined }>;
|
||||||
}) {
|
}) {
|
||||||
if ((await auth())?.user == null) {
|
if ((await auth())?.user == null) {
|
||||||
signIn();
|
await signIn();
|
||||||
}
|
}
|
||||||
|
|
||||||
const slug = (await params).slug?.[0];
|
const slug = (await params).slug?.[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user