From 7984a107cf8b3724559a26fa914922c2d57ff9eb Mon Sep 17 00:00:00 2001 From: Bartosz Dokurno Date: Mon, 3 Jun 2024 12:43:35 +0200 Subject: [PATCH] Fix build error --- .../OrganizationMemberDropdown/TransferOwnershipOption.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/components/Organization/OrganizationMemberDropdown/TransferOwnershipOption.tsx b/apps/client/src/components/Organization/OrganizationMemberDropdown/TransferOwnershipOption.tsx index 12160e7..6dc5b41 100644 --- a/apps/client/src/components/Organization/OrganizationMemberDropdown/TransferOwnershipOption.tsx +++ b/apps/client/src/components/Organization/OrganizationMemberDropdown/TransferOwnershipOption.tsx @@ -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'; @@ -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 ( <>