Skip to content

Commit 062023e

Browse files
committed
fix: prevent organizer from registering to their workshop
1 parent 55c59f6 commit 062023e

File tree

1 file changed

+1
-1
lines changed
  • src/app/(app)/workshop/[workshopId]

1 file changed

+1
-1
lines changed

src/app/(app)/workshop/[workshopId]/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export default async function WorkshopPage({ params }: WorkshopPageProps) {
133133
</React.Suspense>
134134

135135
<div className="flex w-full justify-end">
136-
{isCurrentUserWorkshop ? (
136+
{!isCurrentUserWorkshop ? (
137137
<RegisterButton
138138
userId={user.id}
139139
workshopId={workshop.id}

0 commit comments

Comments
 (0)