File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
components/src/organisms/CommandText/useCommandTextString/utils/commandText Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change 4
4
getAllLiquidClassDefs ,
5
5
getModuleDisplayName ,
6
6
getModuleType ,
7
+ getModuleDeckLabel ,
7
8
getOccludedSlotCountForModule ,
8
9
getPipetteSpecsV2 ,
9
10
THERMOCYCLER_MODULE_V1 ,
@@ -42,21 +43,15 @@ export const getLoadCommandText = ({
42
43
} )
43
44
}
44
45
case 'loadModule' : {
46
+ const moduleType = getModuleType ( command . params . model )
45
47
const occludedSlotCount = getOccludedSlotCountForModule (
46
- getModuleType ( command . params . model ) ,
48
+ moduleType ,
47
49
robotType
48
50
)
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
- }
56
51
return t ( 'load_module_protocol_setup' , {
57
52
count : occludedSlotCount ,
58
53
module : getModuleDisplayName ( command . params . model ) ,
59
- slot_name : slotName ,
54
+ slot_name : getModuleDeckLabel ( moduleType , command . params . location . slotName ) ,
60
55
} )
61
56
}
62
57
case 'loadLid' :
You can’t perform that action at this time.
0 commit comments