Skip to content

Commit

Permalink
rename boolean consts to start with is
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader committed Dec 12, 2023
1 parent 308dc8d commit 9bd9081
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@ export const LabwareSelectionModal = (props: Props): JSX.Element | null => {
const { dimensions, parameters } = labwareDef
const { xDimension, yDimension } = dimensions

const smallXDimension = xDimension < 127.75
const smallYDimension = yDimension < 85.48
const irregularSize = smallXDimension && smallYDimension
const isSmallXDimension = xDimension < 127.75
const isSmallYDimension = yDimension < 85.48
const isIrregularSize = isSmallXDimension && isSmallYDimension

const isAdapter = labwareDef.allowedRoles?.includes('adapter')
const isAdapter96Channel = parameters.loadName === ADAPTER_96_CHANNEL
Expand All @@ -227,7 +227,7 @@ export const LabwareSelectionModal = (props: Props): JSX.Element | null => {
)) ||
!getLabwareCompatible(labwareDef) ||
(isAdapter &&
irregularSize &&
isIrregularSize &&
!slot?.includes(HEATERSHAKER_MODULE_TYPE)) ||
(isAdapter96Channel && !has96Channel) ||
(slot === 'offDeck' && isAdapter)
Expand Down

0 comments on commit 9bd9081

Please sign in to comment.