Skip to content
Snippets Groups Projects
Commit c853cc0c authored by Marjolaine Bodin's avatar Marjolaine Bodin
Browse files

#128 fix check to hide box

parent d24e007f
No related tags found
1 merge request!142Resolve "Related Resources box"
Pipeline #231918 passed
......@@ -6,7 +6,7 @@ import { Suspense } from 'react';
import { Card } from 'react-bootstrap';
export function DOIRelated({ doi }: { doi: DOI }) {
if (doi.relatedDOI?.length === 0 && !doi.referenceURL) {
if ((!doi.relatedDOI || doi.relatedDOI?.length === 0) && !doi.referenceURL) {
return null;
}
return (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment