Commit 4d81d910 authored by Oleksii Savran's avatar Oleksii Savran Committed by Viacheslav Pavlov
Browse files

Bug: renders donor institute name & number when null

parent 92d27aa4
......@@ -224,15 +224,18 @@ class BrowsePage extends React.Component<IBrowsePageProps, any> {
{ t(`accessions.common.mlsStatus.${accession.mlsStatus}`) }
<AuditedInfo info={ auditAccession.mlsStatus }/>
</PropertiesItem>
<PropertiesItem title={ t('accessions.public.p.display.donorInstitute') }>
{ accession.donorCode }
<AuditedInfo info={ auditAccession.donorCode }/>
</PropertiesItem>
<PropertiesItem title={ t('accessions.public.p.display.donorAccessionNumber') }>
{ accession.donorNumb }
<AuditedInfo info={ auditAccession.donorNumb }/>
</PropertiesItem>
{ accession.donorCode &&
<PropertiesItem title={ t('accessions.public.p.display.donorInstitute') }>
{ accession.donorCode }
<AuditedInfo info={ auditAccession.donorCode }/>
</PropertiesItem>
}
{ accession.donorNumb &&
<PropertiesItem title={ t('accessions.public.p.display.donorAccessionNumber') }>
{ accession.donorNumb }
<AuditedInfo info={ auditAccession.donorNumb }/>
</PropertiesItem>
}
{ accession.duplSite && accession.duplSite.length > 0 && <PropertiesItem title={ t('accessions.public.p.display.safetyDuplicationInstitute') }>
{ accession.duplSite.map((duplSite, i) => (
<div key={ duplSite } style={ {width: '100%', paddingTop: '.25rem'} }>{ duplSite }</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment