From e871e5703f01daf9b00d189623c30283e9b9bd1f Mon Sep 17 00:00:00 2001 From: Leon Serfaty G Date: Thu, 17 Jul 2025 11:00:08 +0000 Subject: [PATCH] ok, we finished the estimate for when users select entire project as opt --- src/components/cost-estimator/cost-estimator-form.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/cost-estimator/cost-estimator-form.tsx b/src/components/cost-estimator/cost-estimator-form.tsx index 79605fe..69a21cd 100644 --- a/src/components/cost-estimator/cost-estimator-form.tsx +++ b/src/components/cost-estimator/cost-estimator-form.tsx @@ -69,13 +69,21 @@ export function CostEstimatorForm() { const handleNextStep = () => { startTransition(() => { + if (currentStep === 2 && formData.serviceType === 'development') { + setCurrentStep(5); + } else { setCurrentStep((prev) => prev + 1); + } }); }; const handlePrevStep = () => { startTransition(() => { + if (currentStep === 5 && formData.serviceType === 'development') { + setCurrentStep(2); + } else { setCurrentStep((prev) => prev - 1); + } }); };