FIX - Deploy bug in frontend
This commit is contained in:
@@ -27,7 +27,7 @@ function VotingPage() {
|
|||||||
const [socket, setSocket] = useState(null);
|
const [socket, setSocket] = useState(null);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const s = io("http://localhost:3000");
|
const s = io("https://livepoll-anjx.onrender.com");
|
||||||
setSocket(s);
|
setSocket(s);
|
||||||
|
|
||||||
s.on("connect", () => {
|
s.on("connect", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user