File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
organisms/Desktop/Devices/ProtocolRun/SetupModuleAndDeck Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,11 @@ export const ModuleInfo = (props: ModuleInfoProps): JSX.Element => {
48
48
if ( physicalPort === null && isAttached ) {
49
49
connectionStatus = t ( 'usb_connected_no_port_info' )
50
50
} else if ( physicalPort != null && isAttached ) {
51
- connectionStatus = t ( 'usb_port_connected' , { port : physicalPort . port } )
51
+ const portDisplay =
52
+ physicalPort ?. hubPort != null
53
+ ? `${ physicalPort . port } .${ physicalPort . hubPort } `
54
+ : physicalPort ?. port
55
+ connectionStatus = t ( 'usb_port_connected' , { port : portDisplay } )
52
56
}
53
57
54
58
return (
Original file line number Diff line number Diff line change @@ -298,6 +298,11 @@ export function ModulesListItem({
298
298
// convert slot name to cutout id
299
299
const cutoutIdForSlotName = getCutoutIdForSlotName ( slotName , deckDef )
300
300
301
+ const portDisplay =
302
+ attachedModuleMatch ?. usbPort ?. hubPort != null
303
+ ? `${ attachedModuleMatch . usbPort . port } .${ attachedModuleMatch . usbPort . hubPort } `
304
+ : attachedModuleMatch ?. usbPort ?. port
305
+
301
306
return (
302
307
< >
303
308
{ showLocationConflictModal && cutoutIdForSlotName != null ? (
@@ -369,10 +374,10 @@ export function ModulesListItem({
369
374
: TC_MODULE_LOCATION_OT2
370
375
: slotName }
371
376
</ LegacyStyledText >
372
- { attachedModuleMatch ?. usbPort . port != null ? (
377
+ { portDisplay != null ? (
373
378
< LegacyStyledText as = "p" >
374
379
{ t ( 'usb_port_number' , {
375
- port : attachedModuleMatch . usbPort . port ,
380
+ port : portDisplay ,
376
381
} ) }
377
382
</ LegacyStyledText >
378
383
) : null }
You can’t perform that action at this time.
0 commit comments