@lookiero/checkout 0.8.16 → 0.8.17

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.
@@ -17,7 +17,8 @@ const ItemActions = ({ productVariants, productVariantSelected, keepButtonLoadin
17
17
  label: size({ size: productVariant.size, country }),
18
18
  value: productVariant.id,
19
19
  })), [country, productVariants]);
20
- const disabledSizeSelector = useMemo(() => sizeSelectorOptions.length === 1 && sizeSelectorOptions[0]?.value === productVariantSelected.id, [sizeSelectorOptions, productVariantSelected.id]);
20
+ const disabledSizeSelector = useMemo(() => sizeSelectorOptions.length === 0 ||
21
+ (sizeSelectorOptions.length === 1 && sizeSelectorOptions[0]?.value === productVariantSelected.id), [sizeSelectorOptions, productVariantSelected.id]);
21
22
  return (React.createElement(Sticky, { onLayout: onLayout },
22
23
  React.createElement(Body, { style: { column: style.container } },
23
24
  React.createElement(Button, { busy: keepButtonLoading, onPress: onKeep }, keepButtonText),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "0.8.16",
3
+ "version": "0.8.17",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [