diff --git a/src/Organizations/OrganizationDetails/OrganizationDetails.js b/src/Organizations/OrganizationDetails/OrganizationDetails.js index 68251aff..ae415628 100644 --- a/src/Organizations/OrganizationDetails/OrganizationDetails.js +++ b/src/Organizations/OrganizationDetails/OrganizationDetails.js @@ -106,6 +106,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, ); @@ -333,7 +334,7 @@ const OrganizationDetails = ({ { - Boolean(organization.isVendor && organization.isDonor) && ( + isDonorVisible && (