From faf67b33d3d50caea85b293f4b21480fb59d07a5 Mon Sep 17 00:00:00 2001 From: mwan-ep <54115904+mwan-ep@users.noreply.github.com> Date: Fri, 21 Aug 2020 14:13:58 -0700 Subject: [PATCH] Fixes hardcoded Algolia index for price asc/desc --- src/Search.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Search.tsx b/src/Search.tsx index 9c652bc..8e3562a 100644 --- a/src/Search.tsx +++ b/src/Search.tsx @@ -30,8 +30,8 @@ export const Search: React.FC = () => { defaultRefinement={config.algoliaIndexName} items={[ { value: config.algoliaIndexName, label: t('featured') }, - { value: 'product_price_asc', label: t('price-asc') }, - { value: 'product_price_desc', label: t('price-desc') } + { value: `${config.algoliaIndexName}_price_asc`, label: t('price-asc') }, + { value: `${config.algoliaIndexName}_price_desc`, label: t('price-desc') } ]} />