Skip to content

Commit

Permalink
fix(protocol-designer): display correct tip position offset (#14714)
Browse files Browse the repository at this point in the history
closes RESC-223
  • Loading branch information
shlokamin authored Mar 21, 2024
1 parent 4f47e32 commit e6b7b03
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export function TipPositionField(props: TipPositionFieldProps): JSX.Element {
updateValue,
isIndeterminate,
labwareId,
value: rawValue,
} = props
const { t } = useTranslation('application')
const [targetProps, tooltipProps] = useHoverTooltip()
Expand Down Expand Up @@ -69,7 +70,7 @@ export function TipPositionField(props: TipPositionFieldProps): JSX.Element {
const isTouchTipField = getIsTouchTipField(name)
const isDelayPositionField = getIsDelayPositionField(name)
let value: string | number = '0'
const mmFromBottom = typeof value === 'number' ? value : null
const mmFromBottom = typeof rawValue === 'number' ? rawValue : null
if (wellDepthMm !== null) {
// show default value for field in parens if no mmFromBottom value is selected
value =
Expand Down

0 comments on commit e6b7b03

Please sign in to comment.