Skip to content

Commit e203962

Browse files
authored
Merge pull request #136 from ModusCreateOrg/ADE-208
[ADE-208] Fix rendering of medical comments section in OriginalReportTab component
2 parents 526410c + 143b55f commit e203962

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

frontend/src/pages/Reports/components/OriginalReportTab.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,12 @@ const OriginalReportTab: React.FC<OriginalReportTabProps> = ({ reportData }) =>
6666
</div>
6767

6868
{/* Medical Comments Section */}
69-
<div className="report-detail-page__comments-section">
70-
<h4 className="report-detail-page__comments-title">Medical Comments:</h4>
71-
<div className="report-detail-page__comments-text">{reportData.medicalComments}</div>
72-
</div>
69+
{reportData.medicalComments.length > 0 && (
70+
<div className="report-detail-page__comments-section">
71+
<h4 className="report-detail-page__comments-title">Medical Comments:</h4>
72+
<div className="report-detail-page__comments-text">{reportData.medicalComments}</div>
73+
</div>
74+
)}
7375

7476
{/* Uploaded File Section */}
7577
<div className="report-detail-page__uploaded-file">

0 commit comments

Comments
 (0)