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

Simplify scriptCount logic

This commit is contained in:
G.Ambatte
2024-11-10 19:30:57 +13:00
parent 952b67aed3
commit b3793a3330

View File

@@ -81,7 +81,7 @@ const BrewLookup = createClass({
<dt>Number of SCRIPT tags detected</dt>
<dd>{this.state.scriptCount}</dd>
</dl>
{this.state.scriptCount > 0 &&
{this.state.scriptCount &&
<div className='cleanButton'>
<button onClick={this.cleanScript}>CLEAN BREW</button>
</div>