Commit ebeb162 1 parent a9fc050 commit ebeb162 Copy full SHA for ebeb162
File tree 2 files changed +15
-1
lines changed
app/src/pages/ProtocolDetails
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ import {
21
21
GRIPPER_V1_2 ,
22
22
MAGNETIC_BLOCK_FIXTURES ,
23
23
MAGNETIC_BLOCK_TYPE ,
24
+ TC_MODULE_LOCATION_OT3 ,
25
+ THERMOCYCLER_MODULE_TYPE ,
24
26
} from '@opentrons/shared-data'
25
27
26
28
import {
@@ -113,7 +115,11 @@ function HardwareItem({
113
115
</ LegacyStyledText >
114
116
)
115
117
if ( hardware . hardwareType === 'module' ) {
116
- location = < DeckInfoLabel deckLabel = { hardware . slot } />
118
+ const slot =
119
+ getModuleType ( hardware . moduleModel ) === THERMOCYCLER_MODULE_TYPE
120
+ ? TC_MODULE_LOCATION_OT3
121
+ : hardware . slot
122
+ location = < DeckInfoLabel deckLabel = { slot } />
117
123
} else if ( hardware . hardwareType === 'fixture' ) {
118
124
location = (
119
125
< DeckInfoLabel
Original file line number Diff line number Diff line change @@ -59,6 +59,13 @@ describe('Hardware', () => {
59
59
hasSlotConflict : false ,
60
60
connected : false ,
61
61
} ,
62
+ {
63
+ hardwareType : 'module' ,
64
+ moduleModel : 'thermocyclerModuleV2' ,
65
+ slot : 'B1' ,
66
+ hasSlotConflict : false ,
67
+ connected : false ,
68
+ } ,
62
69
{
63
70
hardwareType : 'fixture' ,
64
71
cutoutFixtureId : WASTE_CHUTE_RIGHT_ADAPTER_NO_COVER_FIXTURE ,
@@ -92,6 +99,7 @@ describe('Hardware', () => {
92
99
} )
93
100
screen . getByRole ( 'row' , { name : '1 Heater-Shaker Module GEN1' } )
94
101
screen . getByRole ( 'row' , { name : '3 Temperature Module GEN2' } )
102
+ screen . getByRole ( 'row' , { name : 'A1+B1 Thermocycler Module GEN2' } )
95
103
screen . getByRole ( 'row' , { name : 'D3 Waste chute only' } )
96
104
screen . getByRole ( 'row' , { name : 'B3 Staging area slot' } )
97
105
} )
You can’t perform that action at this time.
0 commit comments