Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ncdiehl11 committed Nov 7, 2024
1 parent 8e37295 commit bc80b14
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from 'react'
import { useTranslation } from 'react-i18next'
import { useSelector } from 'react-redux'
import {
Expand All @@ -22,12 +21,6 @@ export function TemperatureTools(props: StepFormProps): JSX.Element {
const { t } = useTranslation(['application', 'form', 'protocol_steps'])
const moduleLabwareOptions = useSelector(getTemperatureLabwareOptions)

React.useEffect(() => {
if (moduleLabwareOptions.length === 1) {
propsForFields.moduleId.updateValue(moduleLabwareOptions[0].value)
}
}, [])

const mappedErrorsToField = getFormErrorsMappedToField(visibleFormErrors)

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ describe('TemperatureTools', () => {

it('renders a temperature module form with 1 module', () => {
render(props)
screen.debug()
screen.getByText('Module state')
screen.getByText('mock module')
})
Expand Down

0 comments on commit bc80b14

Please sign in to comment.