diff --git a/app/src/organisms/PipetteWizardFlows/__tests__/getPipetteWizardStepsForProtocol.test.tsx b/app/src/organisms/PipetteWizardFlows/__tests__/getPipetteWizardStepsForProtocol.test.tsx index 50cbf541b77..4ee6032828f 100644 --- a/app/src/organisms/PipetteWizardFlows/__tests__/getPipetteWizardStepsForProtocol.test.tsx +++ b/app/src/organisms/PipetteWizardFlows/__tests__/getPipetteWizardStepsForProtocol.test.tsx @@ -30,7 +30,7 @@ describe('getPipetteWizardStepsForProtocol', () => { getPipetteWizardStepsForProtocol({ left: null, right: null }, [], LEFT) ).toStrictEqual(mockFlowSteps) }) - it('returns the calibration flow only when correct pipette is attached even if htere is pip cal data', () => { + it('returns the calibration flow only when correct pipette is attached even if there is pip cal data', () => { const mockFlowSteps = [ { section: SECTIONS.BEFORE_BEGINNING, diff --git a/app/src/organisms/PipetteWizardFlows/index.tsx b/app/src/organisms/PipetteWizardFlows/index.tsx index ae028087e11..14aa0b8ba19 100644 --- a/app/src/organisms/PipetteWizardFlows/index.tsx +++ b/app/src/organisms/PipetteWizardFlows/index.tsx @@ -86,7 +86,7 @@ export const PipetteWizardFlows = ( ) const host = useHost() const [currentStepIndex, setCurrentStepIndex] = React.useState(0) - const totalStepCount = pipetteWizardSteps.length - 1 + const totalStepCount = pipetteWizardSteps ? pipetteWizardSteps.length - 1 : 0 const currentStep = pipetteWizardSteps?.[currentStepIndex] ?? null const [isFetchingPipettes, setIsFetchingPipettes] = React.useState( false