0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

optional chaining not needed on props

This commit is contained in:
Trevor Buckner
2021-08-09 00:40:25 -04:00
parent 6775960241
commit 9ca8afb3ba

View File

@@ -142,10 +142,10 @@ const UserPage = createClass({
<div className='phb'>
{this.renderSortOptions()}
<div className='published'>
<h1>{this.getUsernameWithS()} brews</h1>
<h1>{this.getUsernameWithS()} published brews</h1>
{this.renderBrews(brews.published)}
</div>
{this.props?.username == global.account?.username &&
{this.props.username == global.account?.username &&
<div className='unpublished'>
<h1>{this.getUsernameWithS()} unpublished brews</h1>
{this.renderBrews(brews.private)}