Skip to content

Commit

Permalink
fix useTrackRef
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocupe committed Nov 6, 2023
1 parent 5337dd5 commit 622f57a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/hooks/useTrackMutedIndicator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function useTrackMutedIndicator(
options: UseTrackMutedIndicatorOptions = {},
): TrackMutedIndicatorReturnType {
let ref = useMaybeTrackRefContext();
const p = useMaybeParticipantContext() ?? options.participant;
const p = useMaybeParticipantContext() ?? options.participant ?? ref?.participant;

if (typeof trackRefOrSource === 'string') {
if (!p) {
Expand Down

0 comments on commit 622f57a

Please sign in to comment.