Skip to content

Commit

Permalink
feeback
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhuff committed Jul 19, 2024
1 parent e1b7e3a commit b8e53a1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getPipetteNameSpecs } from '@opentrons/shared-data'
import { getPipetteSpecsV2 } from '@opentrons/shared-data'

import type { ConfigureForVolumeRunTimeCommand } from '@opentrons/shared-data/command'
import type { HandlesCommands } from './types'
Expand All @@ -16,6 +16,6 @@ export function getConfigureForVolumeCommandText({
return t('configure_for_volume', {
volume,
pipette:
pipetteName != null ? getPipetteNameSpecs(pipetteName)?.displayName : '',
pipetteName != null ? getPipetteSpecsV2(pipetteName)?.displayName : '',
})
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getPipetteNameSpecs } from '@opentrons/shared-data'
import { getPipetteSpecsV2 } from '@opentrons/shared-data'

import type { ConfigureNozzleLayoutRunTimeCommand } from '@opentrons/shared-data/command'
import type { ConfigureNozzleLayoutRunTimeCommand } from '@opentrons/shared-data'
import type { HandlesCommands } from './types'

export function getConfigureNozzleLayoutCommandText({
Expand All @@ -16,6 +16,6 @@ export function getConfigureNozzleLayoutCommandText({
return t('configure_nozzle_layout', {
amount: configurationParams.style === 'COLUMN' ? '8' : 'all',
pipette:
pipetteName != null ? getPipetteNameSpecs(pipetteName)?.displayName : '',
pipetteName != null ? getPipetteSpecsV2(pipetteName)?.displayName : '',
})
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
getModuleDisplayName,
getModuleType,
getOccludedSlotCountForModule,
getPipetteNameSpecs,
getPipetteSpecsV2,
} from '@opentrons/shared-data'

import {
Expand Down Expand Up @@ -31,7 +31,7 @@ export const getLoadCommandText = ({
return t('load_pipette_protocol_setup', {
pipette_name:
pipetteModel != null
? getPipetteNameSpecs(pipetteModel)?.displayName ?? ''
? getPipetteSpecsV2(pipetteModel)?.displayName ?? ''
: '',
mount_name: command.params.mount === 'left' ? t('left') : t('right'),
})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getPipetteNameSpecs } from '@opentrons/shared-data'
import { getPipetteSpecsV2 } from '@opentrons/shared-data'

import type { PrepareToAspirateRunTimeCommand } from '@opentrons/shared-data/command'
import type { HandlesCommands } from './types'
Expand All @@ -15,6 +15,6 @@ export function getPrepareToAspirateCommandText({

return t('prepare_to_aspirate', {
pipette:
pipetteName != null ? getPipetteNameSpecs(pipetteName)?.displayName : '',
pipetteName != null ? getPipetteSpecsV2(pipetteName)?.displayName : '',
})
}

0 comments on commit b8e53a1

Please sign in to comment.