diff --git a/src/Organizations/OrganizationDetails/OrganizationDetails.js b/src/Organizations/OrganizationDetails/OrganizationDetails.js index 77589561..7a12c905 100644 --- a/src/Organizations/OrganizationDetails/OrganizationDetails.js +++ b/src/Organizations/OrganizationDetails/OrganizationDetails.js @@ -110,6 +110,7 @@ const OrganizationDetails = ({ const history = useHistory(); const accordionStatusRef = useRef(); const isDetailsPaneInFocus = location.state?.isDetailsPaneInFocus; + const isDonorVisible = organization?.isVendor && organization?.isDonor; const { restrictions, isLoading: isRestrictionsLoading } = useAcqRestrictions( organization.id, organization.acqUnitIds, ); @@ -338,7 +339,7 @@ const OrganizationDetails = ({ { - Boolean(organization.isVendor && organization.isDonor) && ( + isDonorVisible && (