Skip to content

Commit

Permalink
fix(app): Ensure cal check exit button on the title modal only displa…
Browse files Browse the repository at this point in the history
…ys if there is no primary exit (#6616)
  • Loading branch information
Laura-Danielle authored Sep 23, 2020
1 parent e82e4bc commit 88bb0a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/src/components/CheckCalibration/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ export function CheckCalibration(props: CheckCalibrationProps): React.Node {
hasTwoPipettes
)
const comparison = comparisonsByStep[currentStep]
if (comparison?.exceedsThreshold) {
shouldDisplayTitleBarExit = false
}
stepContents = (
<CheckXYPoint
slotNumber={slotNumber}
Expand Down Expand Up @@ -280,6 +283,9 @@ export function CheckCalibration(props: CheckCalibrationProps): React.Node {
hasTwoPipettes
)
const comparison = comparisonsByStep[currentStep]
if (comparison?.exceedsThreshold) {
shouldDisplayTitleBarExit = false
}
stepContents = (
<CheckHeight
isMulti={isActiveInstrumentMultiChannel}
Expand Down

0 comments on commit 88bb0a8

Please sign in to comment.