fixes issue with vote not updating
This commit is contained in:
@@ -60,6 +60,7 @@ export default function MobileVoting() {
|
||||
if (key == "track") {
|
||||
setYesHighlight(false);
|
||||
setNoHighlight(false);
|
||||
setVote(0.5);
|
||||
}
|
||||
}
|
||||
console.log(data);
|
||||
@@ -100,7 +101,7 @@ export default function MobileVoting() {
|
||||
}, [auth]);
|
||||
|
||||
useEffect(() => {
|
||||
if (sessionSocket?.readyState == WebSocket.OPEN) {
|
||||
if (vote != 0.5 && sessionSocket?.readyState == WebSocket.OPEN) {
|
||||
sessionSocket.send(
|
||||
JSON.stringify({
|
||||
action: "vote",
|
||||
|
||||
Reference in New Issue
Block a user