npm-pkg-hook 1.7.5 → 1.7.6

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
@@ -44,5 +44,5 @@
44
44
  "rm": "rm -rf node_modules package-lock.json && npm i",
45
45
  "test": "echo \"Error: no test specified\" && exit 1"
46
46
  },
47
- "version": "1.7.5"
47
+ "version": "1.7.6"
48
48
  }
@@ -21,7 +21,7 @@ export const useUpdateExtProductFoodsOptional = () => {
21
21
  opExPid,
22
22
  OptionalProName,
23
23
  required,
24
- numbersOptionalOnly
24
+ numbersOptionalOnly: Number(numbersOptionalOnly)
25
25
  }
26
26
  },
27
27
  update: (cache, { data: { ExtProductFoodsOptionalAll } }) => {
@@ -15,7 +15,7 @@ export * from './helpers'
15
15
  export const useDessert = ({
16
16
  pId = null,
17
17
  initialData = null,
18
- sendNotification = () => { }
18
+ sendNotification = (args) => { return args }
19
19
  }) => {
20
20
  const [selectedExtra, setSelectedExtra] = useState({})
21
21
  const [openModalEditExtra, setOpenModalEditExtra] = useState(false)
@@ -634,7 +634,7 @@ export const useSales = ({
634
634
  if (item.pId === pId) {
635
635
  return {
636
636
  ...item,
637
- getOneTags: OurProduct.genderTags,
637
+ getOneTags: OurProduct?.genderTags,
638
638
  unitPrice: OurProduct?.ProPrice,
639
639
  ProPrice: isFree ? 0 : (productExist.ProQuantity + 1) * OurProduct?.ProPrice,
640
640
  ProQuantity: productExist.ProQuantity + +1,