From 54ff53817f18e0d4f82f10eb525992fc795d6556 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Fri, 12 May 2023 10:55:00 -0400 Subject: [PATCH] fix error when register status call-id is empty (#253) --- src/containers/internal/views/carriers/pcap.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/containers/internal/views/carriers/pcap.tsx b/src/containers/internal/views/carriers/pcap.tsx index 1b60f7d..1229f4f 100644 --- a/src/containers/internal/views/carriers/pcap.tsx +++ b/src/containers/internal/views/carriers/pcap.tsx @@ -24,6 +24,7 @@ export const PcapButton = ({ const [pcap, setPcap] = useState(); useEffect(() => { + if (!sipCallId) return; const p = accountSid ? getRecentCall(accountSid, sipCallId) : getServiceProviderRecentCall(serviceProviderSid, sipCallId);