Skip to content

Commit

Permalink
fix: show <LomStats /> also when no createdDate
Browse files Browse the repository at this point in the history
  • Loading branch information
martinobersteiner committed Oct 15, 2024
1 parent 8b33ef4 commit 53de5fb
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,16 @@ export const LOMRecordResultsListItem = ({ result, index }) => {
</Item.Meta>
<Item.Description>{truncate(description, { length: 350 })}</Item.Description>
<Item.Extra>
{createdDate && (
<div className="flex justify-space-between align-items-end">
<div className="flex justify-space-between align-items-end">
{createdDate && (
<small>
Uploaded on <span>{createdDate}</span>
</small>
<small>
<LomStats uniqueViews={uniqueViews} uniqueDownloads={uniqueDownloads} />
</small>
</div>
)}
)}
<small>
<LomStats uniqueViews={uniqueViews} uniqueDownloads={uniqueDownloads} />
</small>
</div>
</Item.Extra>
</Item.Content>
</Item>
Expand Down

0 comments on commit 53de5fb

Please sign in to comment.