Skip to content

Commit

Permalink
device panel anonymous driver hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
aolsenjazz committed Nov 27, 2023
1 parent d224cfc commit 35a6b24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/components/DevicePanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export default function DevicePanel() {

if (selectedDevice === undefined) {
Element = <NoDevicesView />;
} else if (driver === undefined) {
} else if (driverName === 'Anonymous' || driver === undefined) {
// TODO: this if statement kinda sucks. Having to check driver name is ugh
Element = <NoMatchingDriverView deviceName={deviceStub?.name || ''} />;
} else if (isSupported === true) {
Element = <DeviceLayoutWrapper driver={driver} />;
Expand Down

0 comments on commit 35a6b24

Please sign in to comment.