Skip to content

Commit

Permalink
fix(home):build-issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AswinAsok committed Dec 12, 2023
1 parent 18d5429 commit 456573f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/Pages/Home/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,6 @@ const MuLiveCounter = () => {
socket.addEventListener("error", (event) => {
console.error("WebSocket error: ", event);
});

return () => {
socket.close();
if (!counts) {
fetch("https://mulearn.org/api/v1/get-log/global-count/")
.then((response) => response.json())
.then((data) => {
setCounts(data.response);
})
.catch((error) => {
console.error("Error:", error);
});
}
};
}, []);

return (
Expand Down

0 comments on commit 456573f

Please sign in to comment.