Skip to content

Commit

Permalink
fix(protocol-designer): set default z value for TipPositionModal (#15237
Browse files Browse the repository at this point in the history
)

Closes RQA-2750

If selecting a custom offset for TipPositionModal on a transfer step,
the Z field should populate with the default offset from bottom rather
than empty.
  • Loading branch information
ncdiehl11 authored and ryanthecoder committed May 28, 2024
1 parent 11b740d commit 4031cfc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const TipPositionModal = (
})

const [zValue, setZValue] = React.useState<string | null>(
zSpec?.value == null ? null : String(zSpec?.value)
zSpec?.value == null ? String(defaultMmFromBottom) : String(zSpec?.value)
)
const [yValue, setYValue] = React.useState<string | null>(
ySpec?.value == null ? null : String(ySpec?.value)
Expand Down

0 comments on commit 4031cfc

Please sign in to comment.