chore: remove unused logging

This commit is contained in:
oSumAtrIX 2023-03-19 01:49:15 +01:00
parent 0fbd8d6a9c
commit e0ece84431
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -137,12 +137,10 @@
} }
async function submitBallot() { async function submitBallot() {
const selected_ids = selected.flat(); const selected_ids = [...Object.values(selected)].flat();
console.log('selected ids', selected_ids);
const data = { const data = {
votes: logo_ids.map((id) => ({ cid: id, vote: selected_ids.includes(id) })) votes: logo_ids.map((id) => ({ cid: id, vote: selected_ids.includes(id) }))
}; };
console.log(data);
const response = await fetch('https://poll.revanced.app/ballot', { const response = await fetch('https://poll.revanced.app/ballot', {
method: 'POST', method: 'POST',