Skip to content

Commit ff15305

Browse files
🔧 fix: Correct project seat check logic in invitation acceptance page
- Fixed incorrect condition that inaccurately allowed user to attempt joining a project regardless of seat availability
1 parent 8f05ba4 commit ff15305

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • app/(dashboard)/app/project/join/[invitationCode]

‎app/(dashboard)/app/project/join/[invitationCode]/page.tsx‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ export default async function JoinProjectPage({
3838
},
3939
});
4040

41-
console.log({ project })
42-
4341
if (!project) {
4442
redirect(`/app`);
4543
}
@@ -66,7 +64,7 @@ export default async function JoinProjectPage({
6664
return;
6765
};
6866

69-
if(project.projectSeats >= project._count.users) {
67+
if(project.projectSeats <= project._count.users) {
7068
return <NotEnoughSeats projectName={project.name} />
7169
}
7270

0 commit comments

Comments
 (0)