Skip to content

Commit

Permalink
[FIX] Missing dependency on useEffect at CallProvider (#24882)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevLehman authored Mar 18, 2022
1 parent 41dba3d commit 123e1f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/providers/CallProvider/CallProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export const CallProvider: FC = ({ children }) => {
*
*/
remoteAudioMediaRef.current && result.voipClient.switchMediaRenderer({ remoteMediaElement: remoteAudioMediaRef.current });
});
}, [result.voipClient]);

const visitorEndpoint = useEndpoint('POST', 'livechat/visitor');
const voipEndpoint = useEndpoint('GET', 'voip/room');
Expand Down

0 comments on commit 123e1f5

Please sign in to comment.