Skip to content

Commit

Permalink
fix: removed state-variable and dev-log
Browse files Browse the repository at this point in the history
  • Loading branch information
malmen237 committed Apr 30, 2024
1 parent bc80e02 commit 9d37c9c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/production-line/production-line.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ const ListWrapper = styled(DisplayContainer)`
const StateText = styled.span<{ state: string }>`
font-weight: 700;
color: ${({ state }) => {
console.log(state);
switch (state) {
case "connected":
return "#7be27b";
Expand All @@ -102,7 +101,6 @@ export const ProductionLine: FC = () => {
] = useGlobalState();
const [isInputMuted, setIsInputMuted] = useState(true);
const [isOutputMuted, setIsOutputMuted] = useState(false);
const [enterEffect, setEnterEffect] = useState(true);

const inputAudioStream = useAudioInput({
inputId: joinProductionOptions?.audioinput ?? null,
Expand Down Expand Up @@ -149,11 +147,10 @@ export const ProductionLine: FC = () => {
});

useEffect(() => {
if (connectionState === "connected" && enterEffect) {
if (connectionState === "connected") {
playEnterSound();
setEnterEffect(false);
}
}, [connectionState, enterEffect, playEnterSound]);
}, [connectionState, playEnterSound]);

const muteOutput = useCallback(() => {
audioElements.forEach((singleElement: HTMLAudioElement) => {
Expand Down

0 comments on commit 9d37c9c

Please sign in to comment.