Skip to content

Commit

Permalink
fix: product variation master facet selection does not work for non-s…
Browse files Browse the repository at this point in the history
…tring filters (#1439, #1449)

* product variations should be selected by checking value equality with same data type
  • Loading branch information
Eisie96 committed Jun 13, 2023
1 parent ff102e3 commit 94967fa
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -109,7 +109,7 @@ export class ProductVariationHelper {
// attribute is not selected
!selectedFacets.find(([key]) => key === attr.variationAttributeId) ||
// selection is variation
selectedFacets.find(([key, val]) => key === attr.variationAttributeId && val === attr.value)
selectedFacets.find(([key, val]) => key === attr.variationAttributeId && val === attr.value.toString())
)
).length;
}
Expand Down

0 comments on commit 94967fa

Please sign in to comment.