From 4bbe289c95fa74fb66bd47d43af7da7f6554ebbf Mon Sep 17 00:00:00 2001 From: "pramod.mahajan" Date: Wed, 29 Oct 2025 00:06:12 +0530 Subject: [PATCH] handle previous state --- src/components/UserSubscription/ProcessedPayment.jsx | 2 +- src/pages/Home/MakeSubscription.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/UserSubscription/ProcessedPayment.jsx b/src/components/UserSubscription/ProcessedPayment.jsx index 6b988250..7db96edc 100644 --- a/src/components/UserSubscription/ProcessedPayment.jsx +++ b/src/components/UserSubscription/ProcessedPayment.jsx @@ -86,7 +86,7 @@ const ProcessedPayment = ({ }; const handlPrevious=()=>{ setCurrentStep, - setStepStatus((prev) => ({ ...prev, 2: "pending" })); + setStepStatus((prev) => ({ ...prev, 2: "pending",3:"pending" })); setCurrentStep(2); } diff --git a/src/pages/Home/MakeSubscription.jsx b/src/pages/Home/MakeSubscription.jsx index 6c994606..7c4194cd 100644 --- a/src/pages/Home/MakeSubscription.jsx +++ b/src/pages/Home/MakeSubscription.jsx @@ -8,7 +8,7 @@ import SelectPlan from "../../components/UserSubscription/SelectPlan"; import Review from "../../components/UserSubscription/Review"; const MakeSubscription = () => { - const [currentStep, setCurrentStep] = useState(3); + const [currentStep, setCurrentStep] = useState(1); const [responsePayment, setResponsePayment] = useState(null); const [stepStatus, setStepStatus] = useState({