diff --git a/ui/src/components/Publication/PublicationPage/HeaderActions/index.tsx b/ui/src/components/Publication/PublicationPage/HeaderActions/index.tsx index fe69bbf39..618380b68 100644 --- a/ui/src/components/Publication/PublicationPage/HeaderActions/index.tsx +++ b/ui/src/components/Publication/PublicationPage/HeaderActions/index.tsx @@ -14,25 +14,23 @@ type Props = { const HeaderActions: React.FC = (props) => { const { user } = Stores.useAuthStore(); - if (!user) { + if (!user || props.publicationType === 'PEER_REVIEW') { return null; } return (
- {Helpers.linkedPublicationTypes[props.publicationType as keyof typeof Helpers.linkedPublicationTypes].map( - (childPublicationType) => { - return ( - - ); - } - )} + {Helpers.linkedPublicationTypes[props.publicationType].map((childPublicationType) => { + return ( + + ); + })} {!props.authorIds.includes(user.id) && (