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 and sampaiodiego committed Mar 21, 2022
1 parent 41f9415 commit 2d840a6
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 2d840a6

Please sign in to comment.