hey everyone , im facing an issue with my integration , anyone can help here ?
vapi.on("call-start", (callDetails) => {
console.log("Call started");
console.log("Received callDetails:", callDetails.id);
if (callDetails && callDetails.id) {
setCallId(callDetails.id);
setConnecting(false);
setConnected(true);
} else {
console.error("callDetails is undefined or missing id");
}
});
im trying to get my callDetails.id , it's always undefined , anyone can help plz plz plz