This commit is contained in:
Anthony Stirling 2025-10-31 12:57:02 +00:00
parent a256fd9593
commit a2c2579f38
2 changed files with 2 additions and 2 deletions

View File

@ -465,7 +465,7 @@ export default function PeopleSection() {
<Button
leftSection={<LocalIcon icon="person-add" width="1rem" height="1rem" />}
onClick={() => setInviteModalOpened(true)}
disabled={licenseInfo && licenseInfo.availableSlots === 0}
disabled={licenseInfo ? licenseInfo.availableSlots === 0 : false}
>
{t('workspace.people.addMembers')}
</Button>

View File

@ -252,7 +252,7 @@ export default function TeamDetailsSection({ teamId, onBack }: TeamDetailsSectio
<Button
leftSection={<LocalIcon icon="person-add" width="1rem" height="1rem" />}
onClick={() => setAddMemberModalOpened(true)}
disabled={team.name === 'Internal' || (licenseInfo && licenseInfo.availableSlots === 0)}
disabled={team.name === 'Internal' || (licenseInfo ? licenseInfo.availableSlots === 0 : false)}
>
{t('workspace.teams.addMember')}
</Button>