Skip to content

Commit

Permalink
fix: Add guard around add member button (#3907)
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr authored Nov 4, 2024
1 parent bdf40be commit a126195
Showing 1 changed file with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,21 @@ export const MembersTable = ({
</TableRow>
</TableHead>
{showAddMemberButton && (
<TableBody>
<TableRow>
<TableCell colSpan={3}>
<AddButton
onClick={() => {
addUser();
}}
>
Add a new member
</AddButton>
</TableCell>
</TableRow>
</TableBody>
<Permission.IsPlatformAdmin>
<TableBody>
<TableRow>
<TableCell colSpan={3}>
<AddButton
onClick={() => {
addUser();
}}
>
Add a new member
</AddButton>
</TableCell>
</TableRow>
</TableBody>
</Permission.IsPlatformAdmin>
)}
</Table>
{showModal && (
Expand Down

0 comments on commit a126195

Please sign in to comment.