Skip to content

Commit a6e0e67

Browse files
Update session.tsx
1 parent cac89b8 commit a6e0e67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/Context/SessionProvider/session.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,11 +397,11 @@ const SessionProvider = ({ children }: SessionProviderProps): ReactElement => {
397397
* Force mutes a participant.
398398
* @param {Stream} stream - The stream that is going to be muted.
399399
*/
400-
const forceMute = useCallback(async (stream: Stream) => {
400+
const forceMute = useCallback((stream: Stream) => {
401401
if (vonageVideoClient.current) {
402402
void vonageVideoClient.current.forceMuteStream(stream);
403403
}
404-
}, []);
404+
}, []) as (stream: Stream) => Promise<void>;
405405

406406
/**
407407
* Publishes a stream to the session.

0 commit comments

Comments
 (0)