Fix initial volume value if value is 0

This commit is contained in:
Izak Glasencnik 2022-02-22 17:09:03 +01:00 committed by Дамян Минков
parent d018d19874
commit ebe16af809
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ const ParticipantContextMenu = ({
const { disableKick, disableGrantModerator } = remoteVideoMenu;
const { participantsVolume } = useSelector(state => state['features/filmstrip']);
const _volume = (participant?.local ?? true ? undefined
: participant?.id ? participantsVolume[participant?.id] : undefined) || 1;
: participant?.id ? participantsVolume[participant?.id] : undefined) ?? 1;
const isBreakoutRoom = useSelector(isInBreakoutRoom);
const _currentRoomId = useSelector(getCurrentRoomId);