Skip to content

Commit

Permalink
Fix TS error
Browse files Browse the repository at this point in the history
  • Loading branch information
smb2268 committed Feb 15, 2024
1 parent f347908 commit fb3cd01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/src/organisms/PipetteWizardFlows/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const PipetteWizardFlows = (
const host = useHost()
const [currentStepIndex, setCurrentStepIndex] = React.useState<number>(0)
const totalStepCount = pipetteWizardSteps.length - 1

Check failure on line 89 in app/src/organisms/PipetteWizardFlows/index.tsx

View workflow job for this annotation

GitHub Actions / js checks

'pipetteWizardSteps' is possibly 'null'.

Check failure on line 89 in app/src/organisms/PipetteWizardFlows/index.tsx

View workflow job for this annotation

GitHub Actions / js checks

'pipetteWizardSteps' is possibly 'null'.
const currentStep = pipetteWizardSteps?.[currentStepIndex]
const currentStep = pipetteWizardSteps?.[currentStepIndex] ?? null
const [isFetchingPipettes, setIsFetchingPipettes] = React.useState<boolean>(
false
)
Expand Down Expand Up @@ -253,10 +253,10 @@ export const PipetteWizardFlows = (
isOnDevice,
}
const is96ChannelUnskippableStep =
currentStep.section === SECTIONS.CARRIAGE ||
currentStep.section === SECTIONS.MOUNTING_PLATE ||
currentStep?.section === SECTIONS.CARRIAGE ||
currentStep?.section === SECTIONS.MOUNTING_PLATE ||
(selectedPipette === NINETY_SIX_CHANNEL &&
currentStep.section === SECTIONS.DETACH_PIPETTE)
currentStep?.section === SECTIONS.DETACH_PIPETTE)

const exitModal = is96ChannelUnskippableStep ? (
<UnskippableModal
Expand Down

0 comments on commit fb3cd01

Please sign in to comment.