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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user