From c47346885e3bf653086ca7d00119dc53aafc8f6c Mon Sep 17 00:00:00 2001 From: sabrine33 Date: Wed, 11 Dec 2024 11:42:33 +0000 Subject: [PATCH] set section thickness to a precision of 0.5 --- src/components/planning/LabwarePlan.tsx | 4 ++-- src/lib/validation/registrationValidation.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/planning/LabwarePlan.tsx b/src/components/planning/LabwarePlan.tsx index e0dfc49a..8f60a90d 100644 --- a/src/components/planning/LabwarePlan.tsx +++ b/src/components/planning/LabwarePlan.tsx @@ -198,8 +198,8 @@ const LabwarePlan = React.forwardRef( label={'Section Thickness'} name={'sectionThickness'} type={'number'} - min={1} - step={1} + min={0.5} + step={0.5} /> )} {(outputLabware.labwareType.name === LabwareTypeName.VISIUM_LP || diff --git a/src/lib/validation/registrationValidation.ts b/src/lib/validation/registrationValidation.ts index 6ce2fe52..e3ad6e81 100644 --- a/src/lib/validation/registrationValidation.ts +++ b/src/lib/validation/registrationValidation.ts @@ -179,7 +179,7 @@ export default class RegistrationValidation { }); } get sectionThickness() { - return Yup.number().integer().min(0).label('Section Thickness'); + return Yup.number().min(0).label('Section Thickness'); } get labwareType() {