ordering-ui-react-native 0.16.79 → 0.16.80

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.16.79",
3
+ "version": "0.16.80",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -1031,6 +1031,7 @@ export const ProductOptionsUI = (props: any) => {
1031
1031
  disabled={
1032
1032
  maxProductQuantity <= 0 ||
1033
1033
  productCart.quantity >= maxProductQuantity ||
1034
+ productCart.quantity >= product?.maximum_per_order ||
1034
1035
  isSoldOut
1035
1036
  }>
1036
1037
  <OIcon
@@ -1039,6 +1040,7 @@ export const ProductOptionsUI = (props: any) => {
1039
1040
  color={
1040
1041
  maxProductQuantity <= 0 ||
1041
1042
  productCart.quantity >= maxProductQuantity ||
1043
+ productCart.quantity >= product?.maximum_per_order ||
1042
1044
  isSoldOut
1043
1045
  ? theme.colors.backgroundGray
1044
1046
  : theme.colors.backgroundDark
@@ -1093,7 +1095,7 @@ export const ProductOptionsUI = (props: any) => {
1093
1095
  export const ProductForm = (props: any) => {
1094
1096
  const productOptionsProps = {
1095
1097
  ...props,
1096
- productCart: { quantity: props?.product?.minimum_per_order || 1 },
1098
+ productCart: { quantity: props?.product?.maximum_per_order || 1 },
1097
1099
  UIComponent: ProductOptionsUI,
1098
1100
  };
1099
1101