Skip to content

Commit

Permalink
fix(app): clear intervention modal if run is finishing (#15209)
Browse files Browse the repository at this point in the history
Closes RQA-2730

Remove InterventionModal if run is finishing
  • Loading branch information
ncdiehl11 authored May 16, 2024
1 parent a84f58a commit 76cbb52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/pages/RunningProtocol/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
RUN_STATUS_STOP_REQUESTED,
RUN_STATUS_BLOCKED_BY_OPEN_DOOR,
RUN_STATUS_AWAITING_RECOVERY,
RUN_STATUS_FINISHING,
} from '@opentrons/api-client'

import { useFeatureFlag } from '../../redux/config'
Expand Down Expand Up @@ -203,7 +204,8 @@ export function RunningProtocol(): JSX.Element {
{interventionModalCommandKey != null &&
runRecord?.data != null &&
lastRunCommand != null &&
isInterventionCommand(lastRunCommand) ? (
isInterventionCommand(lastRunCommand) &&
runStatus !== RUN_STATUS_FINISHING ? (
<InterventionModal
robotName={robotName}
command={lastRunCommand}
Expand Down

0 comments on commit 76cbb52

Please sign in to comment.