Skip to content

Commit

Permalink
fix(protocol-designer): heater shaker timer field is a boolean instea…
Browse files Browse the repository at this point in the history
…d of boolean string
  • Loading branch information
jerader committed Dec 16, 2024
1 parent 187ba1a commit 48d2cf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,7 @@ export function ToggleExpandStepFormField(
resetFieldValue()
}
} else if (toggleValue == null) {
toggleUpdateValue(
name === 'targetTemperature' || name === 'heaterShakerTimer'
? 'true'
: true
)
toggleUpdateValue(name === 'targetTemperature' ? 'true' : true)
} else {
toggleUpdateValue(!toggleValue)
if (toggleValue) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export function HeaterShakerTools(props: StepFormProps): JSX.Element {
'form:step_edit_form.field.heaterShaker.timer.heaterShakerSetTimer'
)}
fieldTitle={t('form:step_edit_form.field.heaterShaker.duration')}
isSelected={formData.heaterShakerSetTimer === 'true'}
isSelected={formData.heaterShakerSetTimer === true}
units={t('application:units.time')}
toggleElement="checkbox"
formLevelError={getFormLevelError(
Expand Down

0 comments on commit 48d2cf1

Please sign in to comment.