@hanzo/commerce 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44,19 +44,19 @@ const SelectCategoryAndItemWidget: React.FC<{
44
44
  comm.setFacets(facets)
45
45
  }
46
46
 
47
- const currentFacetToken = computed((): string | null => {
47
+ const currentFacetToken = (): string | null => {
48
48
  if (comm.specifiedCategories.length === 0) return null
49
49
  const skuPath = comm.specifiedCategories[0].id
50
50
  const skuPathTokens = skuPath.split('-')
51
51
  return skuPathTokens.length > 0 ? skuPathTokens[skuPathTokens.length - 1] : null
52
- })
52
+ }
53
53
 
54
54
  return (
55
55
  <div className={cn('flex flex-col justify-start gap-4 items-start pt-3', className)}>
56
56
  <FacetTogglesWidget
57
57
  facetValues={categoryLevelValues}
58
58
  mutator={{
59
- get: currentFacetToken.get, // computed's are accessed through their get()
59
+ get: currentFacetToken, // computed's are accessed through their get()
60
60
  set: onFacetTokenChanged
61
61
  }}
62
62
  />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/commerce",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Library with shopping cart components.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",