fix error when register status call-id is empty (#253)

This commit is contained in:
Dave Horton
2023-05-12 10:55:00 -04:00
committed by GitHub
parent 986b9a5eeb
commit 54ff53817f
@@ -24,6 +24,7 @@ export const PcapButton = ({
const [pcap, setPcap] = useState<Pcap>();
useEffect(() => {
if (!sipCallId) return;
const p = accountSid
? getRecentCall(accountSid, sipCallId)
: getServiceProviderRecentCall(serviceProviderSid, sipCallId);