Skip to content

Commit

Permalink
display signature section even if no comments
Browse files Browse the repository at this point in the history
  • Loading branch information
elewis2 committed Aug 15, 2024
1 parent 881d925 commit bf87dc2
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions app/views/ReportView/components/AnalystComments/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ const AnalystComments = ({
}, [report, isSigned, showConfirmDialog]);

const signatureSection = useMemo(() => {
if (!comments) return null;
let order: SignatureUserType[] = ['author', 'reviewer', 'creator'];
if (isPrint) {
order = ['creator', 'author', 'reviewer'];
Expand Down Expand Up @@ -190,14 +189,12 @@ const AnalystComments = ({
) : (
<Typography align="center" variant="h5">No comments yet</Typography>
)}
{comments && (
<div className="analyst-comments__signatures">
{!isPrint && (
<Typography variant="h5">Signed By</Typography>
)}
{signatureSection}
</div>
)}
<div className="analyst-comments__signatures">
{!isPrint && (
<Typography variant="h5">Signed By</Typography>
)}
{signatureSection}
</div>
</>
)}
</div>
Expand Down

0 comments on commit bf87dc2

Please sign in to comment.