Skip to content

Commit fdce97a

Browse files
committed
fix(videoPanel): 🐛 default for undefined partnerId
Include a check to validate if partnerID is not undefined
1 parent e5e41ce commit fdce97a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/frontend/src/components/VideoPanel/VideoPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const VideoPanel = () => {
4343
audio: true,
4444
})
4545
.then((stream) => {
46-
if (peerInstance) {
46+
if (peerInstance && partnerId) {
4747
const call = peerInstance?.call(partnerId, stream);
4848
setCallInstance(call);
4949
setIsCalling(true); // Set isCalling as true since it is the initiator

0 commit comments

Comments
 (0)