An easy-to-use platform for EEG experimentation in the classroom
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Reverted getDeviceName

jdpigeon 1e33fff4 f1891a1c

+2 -10
+2 -10
app/components/CollectComponent/ConnectModal.js
··· 45 45 handleSearch: () => void; 46 46 handleStartTutorial: () => void; 47 47 48 - static getDeviceName(device: any): string { 49 - if (!isNil(device)) { 50 - if (Object.prototype.hasOwnProperty.call(device, 'name')) { 51 - return device.name; 52 - } 53 - if (Object.prototype.hasOwnProperty.call(device, 'id')) { 54 - return device.id; 55 - } 56 - } 57 - return ''; 48 + static getDeviceName(device: any) { 49 + return isNil(device.name) ? device.id : device.name; 58 50 } 59 51 60 52 constructor(props: Props) {