fix: handle custom org limits with member invite

This commit is contained in:
Lucas Smith
2025-10-30 14:31:58 +11:00
parent 7f19ec1265
commit 4a779ec81e
3 changed files with 15 additions and 0 deletions

View File

@ -185,6 +185,10 @@ export const OrganisationMemberInviteDialog = ({
return 'form';
}
if (fullOrganisation.members.length < fullOrganisation.organisationClaim.memberCount) {
return 'form';
}
// This is probably going to screw us over in the future.
if (fullOrganisation.organisationClaim.originalSubscriptionClaimId !== INTERNAL_CLAIM_ID.TEAM) {
return 'alert';