Skip to content

Commit 88bb0a8

Browse files
fix(app): Ensure cal check exit button on the title modal only displays if there is no primary exit (#6616)
1 parent e82e4bc commit 88bb0a8

File tree

1 file changed

+6
-0
lines changed
  • app/src/components/CheckCalibration

1 file changed

+6
-0
lines changed

app/src/components/CheckCalibration/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ export function CheckCalibration(props: CheckCalibrationProps): React.Node {
248248
hasTwoPipettes
249249
)
250250
const comparison = comparisonsByStep[currentStep]
251+
if (comparison?.exceedsThreshold) {
252+
shouldDisplayTitleBarExit = false
253+
}
251254
stepContents = (
252255
<CheckXYPoint
253256
slotNumber={slotNumber}
@@ -280,6 +283,9 @@ export function CheckCalibration(props: CheckCalibrationProps): React.Node {
280283
hasTwoPipettes
281284
)
282285
const comparison = comparisonsByStep[currentStep]
286+
if (comparison?.exceedsThreshold) {
287+
shouldDisplayTitleBarExit = false
288+
}
283289
stepContents = (
284290
<CheckHeight
285291
isMulti={isActiveInstrumentMultiChannel}

0 commit comments

Comments
 (0)