diff --git a/phone/src/modal/components/CallModal.tsx b/phone/src/modal/components/CallModal.tsx index a46e16a..383a6cd 100644 --- a/phone/src/modal/components/CallModal.tsx +++ b/phone/src/modal/components/CallModal.tsx @@ -19,29 +19,30 @@ export const CallModal = () => { const handleAcceptCall = () => { console.log('NUI CALL: ', call.phone_number); Nui.send('phone:acceptCall', { - phoneNumber: call.target, + transmitterNumber: call.transmitter, }); + console.log("NOW BEING TRANSMITTER", call.transmitter) }; const handleRejectCall = () => { setModal(false); Nui.send('phone:rejectCall', { - phoneNumber: call.target, + phoneNumber: call.transmitter, }); }; const handleEndCall = () => { - setModal(false); + setModal(false) Nui.send('phone:endCall', { - phoneNumber: call.target, + transmitterNumber: call.transmitter, }); }; - if (call.transmitter) { + if (call.isTransmitter) { return ( -

{call.target}

+

{call.receiver}

{ return ( -

{call.caller}

+

{call.transmitter}

{!call.accepted ? (