use optional audio context and effect to initiate it + review

This commit is contained in:
Timo
2025-05-14 17:23:42 +02:00
parent 6b8c620bbb
commit 18a59dd7db
4 changed files with 33 additions and 23 deletions

View File

@@ -49,7 +49,7 @@ export const DeviceSelection: FC<Props> = ({
);
// There is no need to show the menu if there is no choice that can be made.
if (device.available.size == 1) return null;
if (device.available.size <= 1) return null;
return (
<div className={styles.selection}>