ordering-ui-react-native 0.16.8-release → 0.16.9-release

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.8-release",
3
+ "version": "0.16.9-release",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -349,7 +349,7 @@ export const ProductOptionsUI = (props: any) => {
349
349
  useEffect(() => {
350
350
  const imageList: any = []
351
351
  const videoList: any = []
352
- product?.images && imageList.push(product.images)
352
+ product?.images?.length > 0 ? imageList.push(product.images) : imageList.push(theme?.images?.dummies?.product)
353
353
  if (product?.gallery && product?.gallery.length > 0) {
354
354
  for (const img of product?.gallery) {
355
355
  if (img?.file) {
@@ -1110,7 +1110,7 @@ export const ProductOptionsUI = (props: any) => {
1110
1110
  export const ProductForm = (props: any) => {
1111
1111
  const productOptionsProps = {
1112
1112
  ...props,
1113
- productCart: { quantity: props?.product?.minimum_per_order || 1 },
1113
+ productCart: { ...props.productCart, quantity: props?.product?.minimum_per_order || 1 },
1114
1114
  UIComponent: ProductOptionsUI,
1115
1115
  };
1116
1116