Skip to content

Commit

Permalink
Update RecentScans.jsx (#182)
Browse files Browse the repository at this point in the history
Signed-off-by: NxPKG <iconmamundentist@gmail.com>
  • Loading branch information
NxPKG authored Nov 29, 2024
1 parent 59b5cd6 commit e28c23c
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions frontend/src/components/scan/utils/RecentScans.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,19 @@ function RecentScansCard({
</small>
<small>
Finished:{" "}
<small>
<DateHoverable
className="text-accent"
ago
value={finished}
format="hh:mm:ss a MMM do, yyyy"
/>
</small>
{finished === null ? (
// in some cases (ex. pending and running status) the finished field is null, so we use a placeholder
<small className="text-gray">processing job</small>
) : (
<small>
<DateHoverable
className="text-accent"
ago
value={finished}
format="hh:mm:ss a MMM do, yyyy"
/>
</small>
)}
</small>
</div>
<div className="d-flex flex-column col-4">
Expand Down

0 comments on commit e28c23c

Please sign in to comment.