Skip to content

Commit 7e3008e

Browse files
authored
Fixes hardcoded Algolia index for price asc/desc (#56)
1 parent 194d162 commit 7e3008e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Search.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ export const Search: React.FC<SearchParams> = () => {
3030
defaultRefinement={config.algoliaIndexName}
3131
items={[
3232
{ value: config.algoliaIndexName, label: t('featured') },
33-
{ value: 'product_price_asc', label: t('price-asc') },
34-
{ value: 'product_price_desc', label: t('price-desc') }
33+
{ value: `${config.algoliaIndexName}_price_asc`, label: t('price-asc') },
34+
{ value: `${config.algoliaIndexName}_price_desc`, label: t('price-desc') }
3535
]}
3636
/>
3737
</div>

0 commit comments

Comments
 (0)