Skip to content

Commit

Permalink
fix(app): fix desktop door status check condition for run button (#13638
Browse files Browse the repository at this point in the history
)

* fix(app): fix desktop door status check condition for run button
  • Loading branch information
koji authored Sep 26, 2023
1 parent 2f6df6d commit b8dd3f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,10 @@ function ActionButton(props: ActionButtonProps): JSX.Element {
isProtocolAnalyzing ||
(runStatus != null && DISABLED_STATUSES.includes(runStatus)) ||
isRobotOnWrongVersionOfSoftware ||
isDoorOpen
(isDoorOpen &&
runStatus !== RUN_STATUS_BLOCKED_BY_OPEN_DOOR &&
runStatus != null &&
CANCELLABLE_STATUSES.includes(runStatus))
const handleProceedToRunClick = (): void => {
trackEvent({ name: ANALYTICS_PROTOCOL_PROCEED_TO_RUN, properties: {} })
play()
Expand Down

0 comments on commit b8dd3f3

Please sign in to comment.