Skip to content

Commit

Permalink
add isInstructor to useMemo array dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
roro-lv committed Apr 5, 2022
1 parent c773181 commit e6beb7e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/frontend/components/ViewersList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ export const ViewersList = ({ isInstructor, video }: ViewersListProps) => {
)
: true),
),
[participants, participantsOnStage, video.participants_asking_to_join],
[
isInstructor,
participants,
participantsOnStage,
video.participants_asking_to_join,
],
);
const intl = useIntl();

Expand Down

0 comments on commit e6beb7e

Please sign in to comment.