Skip to content

Commit

Permalink
fix: speaker-icon is red when audio-output is 0 (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
malmen237 authored Jan 20, 2025
1 parent ab93ff6 commit a2b06e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/production-line/minified-user-controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const MinifiedUserControls = ({
{line &&
!(line?.programOutputLine && joinProductionOptions.isProgramUser) && (
<MinifiedControlsButton
className={isOutputMuted ? "off" : "on"}
className={isOutputMuted || value === 0 ? "off" : "on"}
onClick={setIsOutputMuted}
>
{isOutputMuted || value === 0 ? <SpeakerOff /> : <SpeakerOn />}
Expand Down
4 changes: 3 additions & 1 deletion src/components/production-line/user-controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ export const UserControls = ({
onClick={muteOutput}
disabled={value === 0}
>
<ButtonIcon className={isOutputMuted ? "mute" : "unmuted"}>
<ButtonIcon
className={isOutputMuted || value === 0 ? "mute" : "unmuted"}
>
{isOutputMuted || value === 0 ? <SpeakerOff /> : <SpeakerOn />}
</ButtonIcon>
</UserControlBtn>
Expand Down

0 comments on commit a2b06e8

Please sign in to comment.