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:
Robin Townsend 2022-11-02 12:34:31 -04:00
commit 84a92845c3
5 changed files with 21 additions and 20 deletions

View file

@ -72,7 +72,7 @@ export const VideoTile = forwardRef<HTMLDivElement, Props>(
const { t } = useTranslation();
const toolbarButtons: JSX.Element[] = [];
if (!isLocal) {
if (hasFeed && !isLocal) {
toolbarButtons.push(
<AudioButton
className={styles.button}