Fix empty string IDs not counting as devices

This commit is contained in:
Robin
2025-06-25 13:40:39 -04:00
parent 3b1ce22b71
commit f3419f94c3

View File

@@ -279,9 +279,9 @@ class ControlledAudioOutput
], ],
(available, selectId) => { (available, selectId) => {
const id = selectId ?? available.keys().next().value; const id = selectId ?? available.keys().next().value;
return id return id === undefined
? { id, virtualEarpiece: id === EARPIECE_CONFIG_ID } ? undefined
: undefined; : { id, virtualEarpiece: id === EARPIECE_CONFIG_ID };
}, },
).pipe(this.scope.state()); ).pipe(this.scope.state());