2
0

🐛 (workspace) Fix members list limit bug

This commit is contained in:
Baptiste Arnaud
2023-07-11 18:14:23 +02:00
parent 0465275f82
commit fc0e3782b1
3 changed files with 8 additions and 12 deletions

View File

@@ -97,8 +97,7 @@ export const MembersList = () => {
!isSeatsLimitReached({
plan: workspace?.plan,
customSeatsLimit: workspace?.customSeatsLimit,
existingMembersCount: currentMembersCount,
existingInvitationsCount: invitations.length,
existingMembersAndInvitationsCount: currentMembersCount,
})
return (

View File

@@ -38,8 +38,8 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
])
if (
isSeatsLimitReached({
existingMembersCount,
existingInvitationsCount,
existingMembersAndInvitationsCount:
existingMembersCount + existingInvitationsCount,
...workspace,
})
)