This commit is contained in:
Ax333l 2023-02-08 17:22:17 +01:00
parent ccd4df1edb
commit 3c43b494bd
No known key found for this signature in database
GPG Key ID: D2B4D85271127D23

View File

@ -143,7 +143,7 @@ function preloadImage(url: string) {
}
async function submitBallot() {
const selected_ids = [...Object.values(v)].flat();
const selected_ids = [...Object.values(selected)].flat();
console.log("selected ids", selected_ids);
const data = {
votes: logo_ids.map((id) => ({ cid: id, vote: selected_ids.includes(id) }))