fix(AudioSlider): removed when volume is 0

This commit is contained in:
Hristo Terezov 2021-02-08 15:02:07 -06:00
parent a215f9706a
commit 7dc45c28a2
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ class RemoteVideoMenuTriggerButton extends Component<Props> {
participantID = { participantID } />
);
if (onVolumeChange && initialVolumeValue && !isNaN(initialVolumeValue)) {
if (onVolumeChange && typeof initialVolumeValue === 'number' && !isNaN(initialVolumeValue)) {
buttons.push(
<VolumeSlider
initialValue = { initialVolumeValue }