Skip to content

Commit

Permalink
fix: added null check for current audio device selection
Browse files Browse the repository at this point in the history
  • Loading branch information
ygit committed Oct 1, 2024
1 parent 2abafe4 commit 9896f2c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ export const AudioActions = () => {
if (!audioFiltered) {
return null;
}

if (!currentSelection) {
console.log('######### No audio device selected!');
return null;
}

const deviceCategory = getAudioDeviceCategory(currentSelection.label);
let AudioIcon = <SpeakerIcon />;
if (deviceCategory === 'bluetooth') {
Expand Down

0 comments on commit 9896f2c

Please sign in to comment.