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:
parent
7b71e9b20f
commit
84a92845c3
5 changed files with 21 additions and 20 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue