diff --git a/client/src/components/HomePage/BasicCard.js b/client/src/components/HomePage/BasicCard.js index af9e3118f8..34e4cd18d0 100644 --- a/client/src/components/HomePage/BasicCard.js +++ b/client/src/components/HomePage/BasicCard.js @@ -22,7 +22,7 @@ export default function BasicCard({ title, description, label, link }) { borderRadius: "16px" }} > - + - + diff --git a/server/chat-service/server.js b/server/chat-service/server.js index fc71297b35..2b31af6d09 100644 --- a/server/chat-service/server.js +++ b/server/chat-service/server.js @@ -37,9 +37,15 @@ io.on("connection", (socket) => { socket.on("disconnect", (reason, details) => { console.log("User disconnected from chat service:", socket.id); console.log("Reason", reason); - console.log("Message", details.message); - console.log("Description", details.description); - console.log("Context", details.context); + if (details && details.message) { + console.log("Message", details.message); + } + if (details && details.description) { + console.log("Description", details.description); + } + if (details && details.context) { + console.log("Context", details.context); + } }); }); diff --git a/server/collaboration-service/server.js b/server/collaboration-service/server.js index 8ed9eecc6d..03bc484baa 100644 --- a/server/collaboration-service/server.js +++ b/server/collaboration-service/server.js @@ -31,9 +31,15 @@ io.on("connection", (socket) => { socket.on("disconnect", (reason, details) => { console.log("Client disconnected"); console.log("Reason", reason); - console.log("Message", details.message); - console.log("Description", details.description); - console.log("Context", details.context); + if (details && details.message) { + console.log("Message", details.message); + } + if (details && details.description) { + console.log("Description", details.description); + } + if (details && details.context) { + console.log("Context", details.context); + } }); });