@timardex/cluemart-shared 1.7.47 → 1.7.48

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.
@@ -3765,7 +3765,10 @@ var useDeleteCoupon = () => {
3765
3765
  return { deleteCoupon, error, loading };
3766
3766
  };
3767
3767
  var useScanCoupon = () => {
3768
- const [scanCoupon, { loading, error }] = useMutation20(SCAN_COUPON_MUTATION);
3768
+ const [scanCoupon, { loading, error }] = useMutation20(SCAN_COUPON_MUTATION, {
3769
+ awaitRefetchQueries: true,
3770
+ refetchQueries: [{ query: GET_COUPONS }]
3771
+ });
3769
3772
  return { error, loading, scanCoupon };
3770
3773
  };
3771
3774
 
@@ -3941,4 +3944,4 @@ export {
3941
3944
  useGetCoupons,
3942
3945
  useGetCoupon
3943
3946
  };
3944
- //# sourceMappingURL=chunk-PDKFX6QC.mjs.map
3947
+ //# sourceMappingURL=chunk-XSLKSCCI.mjs.map