Skip to content

Commit b8dd3f3

Browse files
authored
fix(app): fix desktop door status check condition for run button (#13638)
* fix(app): fix desktop door status check condition for run button
1 parent 2f6df6d commit b8dd3f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,10 @@ function ActionButton(props: ActionButtonProps): JSX.Element {
497497
isProtocolAnalyzing ||
498498
(runStatus != null && DISABLED_STATUSES.includes(runStatus)) ||
499499
isRobotOnWrongVersionOfSoftware ||
500-
isDoorOpen
500+
(isDoorOpen &&
501+
runStatus !== RUN_STATUS_BLOCKED_BY_OPEN_DOOR &&
502+
runStatus != null &&
503+
CANCELLABLE_STATUSES.includes(runStatus))
501504
const handleProceedToRunClick = (): void => {
502505
trackEvent({ name: ANALYTICS_PROTOCOL_PROCEED_TO_RUN, properties: {} })
503506
play()

0 commit comments

Comments
 (0)