diff --git a/gui/src/components/onboarding/pages/stay-aligned/stay-aligned-steps/PreparationStep.tsx b/gui/src/components/onboarding/pages/stay-aligned/stay-aligned-steps/PreparationStep.tsx index 78a6c5abe4..f1b3286340 100644 --- a/gui/src/components/onboarding/pages/stay-aligned/stay-aligned-steps/PreparationStep.tsx +++ b/gui/src/components/onboarding/pages/stay-aligned/stay-aligned-steps/PreparationStep.tsx @@ -11,6 +11,7 @@ import { ResetType } from 'solarxr-protocol'; export function PreparationStep({ nextStep, prevStep, + isActive, }: VerticalStepComponentProps) { return (
@@ -53,7 +54,14 @@ export function PreparationStep({
); diff --git a/gui/src/components/onboarding/pages/stay-aligned/stay-aligned-steps/VerifyMounting.tsx b/gui/src/components/onboarding/pages/stay-aligned/stay-aligned-steps/VerifyMounting.tsx index 18f969e872..6c5d72862f 100644 --- a/gui/src/components/onboarding/pages/stay-aligned/stay-aligned-steps/VerifyMounting.tsx +++ b/gui/src/components/onboarding/pages/stay-aligned/stay-aligned-steps/VerifyMounting.tsx @@ -10,6 +10,7 @@ import { ManualMountingPageStayAligned } from '@/components/onboarding/pages/mou export function VerifyMountingStep({ nextStep, prevStep, + isActive, }: VerticalStepComponentProps) { const { isMobile } = useBreakpoint('mobile'); const [isOpen, setOpen] = useState(false); @@ -79,7 +80,11 @@ export function VerifyMountingStep({ onClick={() => setDisableMounting(true)} type={ResetType.Mounting} group="default" - onReseted={goNextStep} + onReseted={() => { + if (isActive) { + nextStep(); + } + }} onFailed={() => setDisableMounting(false)} />