Skip to content

Commit

Permalink
feat: use only interval on participant list
Browse files Browse the repository at this point in the history
  • Loading branch information
martinstark committed Apr 2, 2024
1 parent 0b75cc3 commit 882c2a5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/production-line/production-line.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ export const ProductionLine: FC = () => {
const productionId = parseInt(joinProductionOptions.productionId, 10);
const lineId = parseInt(joinProductionOptions.lineId, 10);

API.fetchProductionLine(productionId, lineId)
.then((line) => setParticipants(line.participants))
.catch(console.error);

interval = window.setInterval(() => {
API.fetchProductionLine(productionId, lineId)
.then((line) => setParticipants(line.participants))
Expand Down

0 comments on commit 882c2a5

Please sign in to comment.