mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 19:59:20 +00:00
code cleanup
This commit is contained in:
@@ -28,7 +28,6 @@ const QrcodeModal = ({ open, onClose, whatsAppId }) => {
|
||||
useEffect(() => {
|
||||
if (!whatsAppId) return;
|
||||
const socket = openSocket(process.env.REACT_APP_BACKEND_URL);
|
||||
console.log("connectiing");
|
||||
|
||||
socket.on("whatsappSession", data => {
|
||||
if (data.action === "update" && data.session.id === whatsAppId) {
|
||||
@@ -42,7 +41,6 @@ const QrcodeModal = ({ open, onClose, whatsAppId }) => {
|
||||
|
||||
return () => {
|
||||
socket.disconnect();
|
||||
console.log("disconnectiing");
|
||||
};
|
||||
}, [whatsAppId, onClose]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user