Skip to content

Commit

Permalink
fix(app): change pipette exit button text (#6930)
Browse files Browse the repository at this point in the history
If you don't detach a pipette during the detach step, you shouldn't be
prompted to "skip calibration".
  • Loading branch information
sfoster1 authored Nov 5, 2020
1 parent 7dec936 commit 7d4a6bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/components/ChangePipette/ConfirmPipette.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,11 @@ function TryAgainButton(props: Props) {
}

function ExitButton(props: Props) {
const { exit, attachedWrong, actualPipetteOffset } = props
const { exit, attachedWrong, actualPipetteOffset, wantedPipette } = props
let buttonText = EXIT_BUTTON_MESSAGE
if (attachedWrong) buttonText = EXIT_BUTTON_MESSAGE_WRONG
else if (!actualPipetteOffset) buttonText = EXIT_WITHOUT_CAL
else if (Boolean(wantedPipette) && !actualPipetteOffset)
buttonText = EXIT_WITHOUT_CAL

return (
<PrimaryBtn marginBottom={SPACING_2} width="100%" onClick={exit}>
Expand Down

0 comments on commit 7d4a6bd

Please sign in to comment.