I'm using the currentRefinements widget to let users select only new products.
The output of that attribute is true or false.
Here's my current code:
instantsearch.widgets.toggleRefinement({
container: '#facet-new',
attribute: 'new',
//on: 'New products',
templates: {
labelText: 'New products',
},
}),
If I uncomment the line
on: 'New products',
The widget wont work anymore.
But if not, the currentRefinements widget only shows true or false as label.
Is there any way to change that label?