0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-29 19:52:43 +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 7b0f5cec97
commit 1edc62d023

View File

@@ -121,9 +121,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>