0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 22:52:40 +00:00

Hide pageCount on User Page if the brew only has one page

This commit is contained in:
G.Ambatte
2021-08-15 20:32:23 +12:00
parent 3cf05e551f
commit 3489a76a1d

View File

@@ -114,9 +114,11 @@ const BrewItem = createClass({
<span>
<i className='fas fa-eye' /> {brew.views}
</span>
<span>
<i className='far fa-file' /> {brew.pageCount || 1}
</span>
{(brew?.pageCount>1) &&
<span>
<i className='far fa-file' /> {brew.pageCount}
</span>
}
<span>
<i className='fas fa-sync-alt' /> {moment(brew.updatedAt).fromNow()}
</span>