Skip to content

Commit

Permalink
fix(protocol-designer): fix error msg display in LiquidToolbox (#16816)
Browse files Browse the repository at this point in the history
* fix(protocol-designer): fix error msg display in LiquidToolbox
  • Loading branch information
koji authored Nov 14, 2024
1 parent 3db8a40 commit cb147fd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ interface LiquidToolboxProps {
}
export function LiquidToolbox(props: LiquidToolboxProps): JSX.Element {
const { onClose } = props
const { t } = useTranslation(['liquids', 'shared'])
const { t } = useTranslation(['liquids', 'form', 'shared'])
const dispatch = useDispatch()
const [showDefineLiquidModal, setDefineLiquidModal] = useState<boolean>(false)
const liquids = useSelector(labwareIngredSelectors.allIngredientNamesIds)
Expand Down Expand Up @@ -186,7 +186,7 @@ export function LiquidToolbox(props: LiquidToolboxProps): JSX.Element {
if (volume == null || volume === '0') {
volumeErrors = t('generic.error.more_than_zero')
} else if (parseInt(volume) > selectedWellsMaxVolume) {
volumeErrors = t('liquid_placement.volume_exceeded', {
volumeErrors = t('form:liquid_placement.volume_exceeded', {
volume: selectedWellsMaxVolume,
})
}
Expand Down

0 comments on commit cb147fd

Please sign in to comment.