Skip to content

Commit f8c138d

Browse files
committed
update load module command text
1 parent c3d411b commit f8c138d

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

components/src/organisms/CommandText/useCommandTextString/utils/commandText/getLoadCommandText.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
getAllLiquidClassDefs,
55
getModuleDisplayName,
66
getModuleType,
7+
getModuleDeckLabel,
78
getOccludedSlotCountForModule,
89
getPipetteSpecsV2,
910
THERMOCYCLER_MODULE_V1,
@@ -42,21 +43,15 @@ export const getLoadCommandText = ({
4243
})
4344
}
4445
case 'loadModule': {
46+
const moduleType = getModuleType(command.params.model)
4547
const occludedSlotCount = getOccludedSlotCountForModule(
46-
getModuleType(command.params.model),
48+
moduleType,
4749
robotType
4850
)
49-
let slotName = command.params.location.slotName
50-
if (
51-
THERMOCYCLER_MODULE_V2 === command.params.model ||
52-
THERMOCYCLER_MODULE_V1 === command.params.model
53-
) {
54-
slotName = 'A1 + B1'
55-
}
5651
return t('load_module_protocol_setup', {
5752
count: occludedSlotCount,
5853
module: getModuleDisplayName(command.params.model),
59-
slot_name: slotName,
54+
slot_name: getModuleDeckLabel(moduleType, command.params.location.slotName),
6055
})
6156
}
6257
case 'loadLid':

0 commit comments

Comments
 (0)