Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix priceFilters visibility bug

Krzysztof Białogłowiczb8ea40688c91
diff --git a/saleor/static/js/components/categoryPage/PriceFilter.js b/saleor/static/js/components/categoryPage/PriceFilter.js
index ea647bd10a..e0c3482b5a 100644
--- a/saleor/static/js/components/categoryPage/PriceFilter.js
+++ b/saleor/static/js/components/categoryPage/PriceFilter.js
@@ -48,7 +48,7 @@ export default class PriceFilter extends Component {
title={gettext('Price range')}
visibility={visibility}
/>
- {visibility && (
+ {visibility || minPrice || maxPrice ? (
<div>
<input
className="form-control"
@@ -71,7 +71,7 @@ export default class PriceFilter extends Component {
/>
<button className="btn btn-primary" onClick={this.updateFilter}>{gettext('Update')}</button>
</div>
- )}
+ ) : (null)}
</div>
);
}