@smvtech/x-flux 1.0.2 → 1.0.3

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/dist/index.js CHANGED
@@ -815,8 +815,7 @@ var EDCFlowProvider = ({ children, orderId }) => {
815
815
  const acceptOrderQCTermsAndConditions = react.useCallback(async () => {
816
816
  if (!order) return;
817
817
  try {
818
- const { data: updatedOrder } = await updateOrderQCTermsAndConditions(order._id);
819
- setOrder(updatedOrder);
818
+ await updateOrderQCTermsAndConditions(order._id);
820
819
  } catch (err) {
821
820
  console.error("Failed to accept order QCTerms and Conditions:", err);
822
821
  setError("Failed to accept order QCTerms and Conditions");
package/dist/index.mjs CHANGED
@@ -789,8 +789,7 @@ var EDCFlowProvider = ({ children, orderId }) => {
789
789
  const acceptOrderQCTermsAndConditions = useCallback(async () => {
790
790
  if (!order) return;
791
791
  try {
792
- const { data: updatedOrder } = await updateOrderQCTermsAndConditions(order._id);
793
- setOrder(updatedOrder);
792
+ await updateOrderQCTermsAndConditions(order._id);
794
793
  } catch (err) {
795
794
  console.error("Failed to accept order QCTerms and Conditions:", err);
796
795
  setError("Failed to accept order QCTerms and Conditions");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smvtech/x-flux",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "x-flux - A powerful React package for managing effective document collection flows, visa questionnaires, travellers, and applications",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",