Skip to content

Commit

Permalink
fix: cleanup!
Browse files Browse the repository at this point in the history
  • Loading branch information
Saelmala committed Jan 17, 2025
1 parent e4fc909 commit 353f013
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
10 changes: 0 additions & 10 deletions src/components/calls-page/calls-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,18 +117,8 @@ export const CallsPage = () => {
setShouldReduceVolume(false);
}
}

return () => {
if (startTimeoutRef.current) {
clearTimeout(startTimeoutRef.current);
}
};
}, [isSomeoneSpeaking, shouldReduceVolume]);

useEffect(() => {
console.log("SHOULD REDUCE VOLUME CALLS PAGE: ", shouldReduceVolume);
}, [shouldReduceVolume]);

useEffect(() => {
if (selectedProductionId) {
setProductionId(selectedProductionId);
Expand Down
6 changes: 1 addition & 5 deletions src/components/production-line/production-line.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ export const ProductionLine = ({
audioElements?.forEach((audioElement) => {
// eslint-disable-next-line no-param-reassign
audioElement.volume = value * volumeChangeFactor;
console.log("AUDIO FEED VOLUME REDUCED TO: ", audioElement.volume);
});
}

Expand All @@ -156,15 +155,12 @@ export const ProductionLine = ({
audioElements?.forEach((audioElement) => {
// eslint-disable-next-line no-param-reassign
audioElement.volume = value;
console.log(
"AUDIO FEED VOLUME INCREASED TO: ",
audioElement.volume
);
});
setHasReduced(false);
}, 3000);
}
}

return () => {
if (increaseVolumeTimeoutRef.current) {
clearTimeout(increaseVolumeTimeoutRef.current);
Expand Down
2 changes: 1 addition & 1 deletion src/components/production-line/user-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const UserWrapper = styled.div<TUserProps>`
const User = styled.div`
display: flex;
align-items: center;
max-width: 28rem;
max-width: 29rem;
`;

const IsTalkingIndicator = styled.div<TIsTalkingIndicator>`
Expand Down

0 comments on commit 353f013

Please sign in to comment.