Skip to content

Commit f24140d

Browse files
committed
Fix logged in checks
1 parent 9e4205f commit f24140d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/app/c/[communitySlug]/forms/[formSlug]/edit/actions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const updateForm = defineServerAction(async function updateForm({
1616
formId: FormsId;
1717
name: string;
1818
}) {
19-
const user = await getLoginData();
19+
const { user } = await getLoginData();
2020

2121
if (!user) {
2222
return {

core/app/c/[communitySlug]/forms/actions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const createForm = defineServerAction(async function createForm(
1919
slug: string,
2020
communityId: CommunitiesId
2121
) {
22-
const user = await getLoginData();
22+
const { user } = await getLoginData();
2323

2424
if (!user) {
2525
return {

0 commit comments

Comments
 (0)