From 9002d17c72b059fe9c3ab1d32a537b43b39b5c05 Mon Sep 17 00:00:00 2001 From: kevin Date: Tue, 26 Mar 2024 09:35:22 -0600 Subject: [PATCH] fix(preact-components/facetoptions): modifying facet options components to utilize refinedValues --- .../components/Molecules/FacetGridOptions/FacetGridOptions.tsx | 2 +- .../Molecules/FacetHierarchyOptions/FacetHierarchyOptions.tsx | 2 +- .../components/Molecules/FacetListOptions/FacetListOptions.tsx | 2 +- .../Molecules/FacetPaletteOptions/FacetPaletteOptions.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/snap-preact-components/src/components/Molecules/FacetGridOptions/FacetGridOptions.tsx b/packages/snap-preact-components/src/components/Molecules/FacetGridOptions/FacetGridOptions.tsx index 930985d7c..5ce2397aa 100644 --- a/packages/snap-preact-components/src/components/Molecules/FacetGridOptions/FacetGridOptions.tsx +++ b/packages/snap-preact-components/src/components/Molecules/FacetGridOptions/FacetGridOptions.tsx @@ -97,7 +97,7 @@ export const FacetGridOptions = observer((properties: FacetGridOptionsProps): JS styling.css = [style]; } - const facetValues = values || facet?.values; + const facetValues = values || facet?.refinedValues; return facetValues?.length ? ( diff --git a/packages/snap-preact-components/src/components/Molecules/FacetHierarchyOptions/FacetHierarchyOptions.tsx b/packages/snap-preact-components/src/components/Molecules/FacetHierarchyOptions/FacetHierarchyOptions.tsx index 3813703c7..2c65eca3d 100644 --- a/packages/snap-preact-components/src/components/Molecules/FacetHierarchyOptions/FacetHierarchyOptions.tsx +++ b/packages/snap-preact-components/src/components/Molecules/FacetHierarchyOptions/FacetHierarchyOptions.tsx @@ -73,7 +73,7 @@ export const FacetHierarchyOptions = observer((properties: FacetHierarchyOptions styling.css = [style]; } - const facetValues = values || facet?.values; + const facetValues = values || facet?.refinedValues; return facetValues?.length ? ( diff --git a/packages/snap-preact-components/src/components/Molecules/FacetListOptions/FacetListOptions.tsx b/packages/snap-preact-components/src/components/Molecules/FacetListOptions/FacetListOptions.tsx index a17004c8e..580c15239 100644 --- a/packages/snap-preact-components/src/components/Molecules/FacetListOptions/FacetListOptions.tsx +++ b/packages/snap-preact-components/src/components/Molecules/FacetListOptions/FacetListOptions.tsx @@ -76,7 +76,7 @@ export const FacetListOptions = observer((properties: FacetListOptionsProps): JS styling.css = [style]; } - const facetValues = values || facet?.values; + const facetValues = values || facet?.refinedValues; return facetValues?.length ? ( diff --git a/packages/snap-preact-components/src/components/Molecules/FacetPaletteOptions/FacetPaletteOptions.tsx b/packages/snap-preact-components/src/components/Molecules/FacetPaletteOptions/FacetPaletteOptions.tsx index 5a82b99d2..bfa33313e 100644 --- a/packages/snap-preact-components/src/components/Molecules/FacetPaletteOptions/FacetPaletteOptions.tsx +++ b/packages/snap-preact-components/src/components/Molecules/FacetPaletteOptions/FacetPaletteOptions.tsx @@ -133,7 +133,7 @@ export const FacetPaletteOptions = observer((properties: FacetPaletteOptionsProp styling.css = [style]; } - const facetValues = values || facet?.values; + const facetValues = values || facet?.refinedValues; return facetValues?.length ? (