Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBartusek committed Jun 3, 2024
1 parent f220208 commit 7984a10
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState } from 'react';
import { createPortal } from 'react-dom';
import { BsArrowRight } from 'react-icons/bs';
import { OrganizationDto, OrganizationSecurityRole, SecurityRuleDto } from 'shared-types';
import { OrganizationDto, SecurityRuleDto } from 'shared-types';
import useUserRole from '../../../hooks/useUserRole';
import { ActionButtonProps } from '../../ActionButton';
import DropdownItem from '../../Dropdown/DropdownItem';
Expand All @@ -16,7 +16,7 @@ function TransferOwnershipOption({ rule, organization, ...props }: TransferOwner
const [open, setOpen] = useState(false);

const { role } = useUserRole(organization.id);
const isOwner = role == OrganizationSecurityRole.OWNER;
const isOwner = role == 'owner';

return (
<>
Expand Down

0 comments on commit 7984a10

Please sign in to comment.