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({