diff --git a/src/components/production-line/production-line.tsx b/src/components/production-line/production-line.tsx index e55228c2..a15006f9 100644 --- a/src/components/production-line/production-line.tsx +++ b/src/components/production-line/production-line.tsx @@ -111,8 +111,8 @@ export const ProductionLine: FC = () => { audioElements.forEach((singleElement: HTMLAudioElement) => { // eslint-disable-next-line no-param-reassign singleElement.muted = !isOutputMuted; - setIsOutputMuted(!isOutputMuted); }); + setIsOutputMuted(!isOutputMuted); }, [audioElements, isOutputMuted]); const line = useLinePolling({ joinProductionOptions });