add: check associated when voting on polls
This commit is contained in:
parent
f4630d4464
commit
a9845fbd67
2 changed files with 15 additions and 1 deletions
|
@ -129,7 +129,9 @@
|
|||
res.message,
|
||||
]);
|
||||
|
||||
window.location.href = `/post/${id}`;
|
||||
if (res.ok) {
|
||||
window.location.href = `/post/${id}`;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue