diff --git a/src/components/GrowerDetail.js b/src/components/GrowerDetail.js index 5b2f3bf7f..ae948a21b 100644 --- a/src/components/GrowerDetail.js +++ b/src/components/GrowerDetail.js @@ -93,7 +93,13 @@ const GrowerDetail = (props) => { setGrowerRegistrations(sortedRegistrations); setDeviceIdentifiers( sortedRegistrations - .map((reg) => reg.device_identifier) + .map((reg) => ({ + id: reg.device_identifier, + os: + reg.manufacturer.toLowerCase() === 'apple' + ? 'iOS' + : 'Android', + })) .filter((id) => id), ); } @@ -247,12 +253,22 @@ const GrowerDetail = (props) => { Device Identifier{deviceIdentifiers.length >= 2 ? 's' : ''} - {(deviceIdentifiers.length && - deviceIdentifiers.map((identifier, index) => ( - - {identifier} - - ))) || ---} + {(deviceIdentifiers.length && ( + + + {deviceIdentifiers.map((device, i) => ( + + + + + ))} + +
+ {device.id} + + ({device.os}) +
+ )) || ---}