handle previous state

This commit is contained in:
pramod.mahajan 2025-10-29 00:06:12 +05:30
parent ed3f70af86
commit 4bbe289c95
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ const ProcessedPayment = ({
};
const handlPrevious=()=>{
setCurrentStep,
setStepStatus((prev) => ({ ...prev, 2: "pending" }));
setStepStatus((prev) => ({ ...prev, 2: "pending",3:"pending" }));
setCurrentStep(2);
}

View File

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