Don't show toolbar buttons on connecting tiles
Because connecting tiles don't have a feed, clicking the local volume button would cause a soft crash. This also fixes a few strict mode errors in the surrounding area while we're at it.
This commit is contained in:
@@ -18,7 +18,7 @@ import { RefObject, useEffect } from "react";
|
||||
|
||||
export function useAudioOutputDevice(
|
||||
mediaRef: RefObject<MediaElement>,
|
||||
audioOutputDevice: string
|
||||
audioOutputDevice: string | undefined
|
||||
): void {
|
||||
useEffect(() => {
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user