bugfix + recalling of selections already made by user

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-03-10 15:34:15 +01:00
parent 1b17c8fb09
commit b95cdd32ec
4 changed files with 23 additions and 4 deletions

View File

@@ -16,8 +16,8 @@
let res = await get(url);
if (res.ok){
poll = await res.json();
if (poll.selection) selection = poll.selection;
yikes();
console.log(Object.entries(poll.weights).sort((a,b) => a[0] - b[0]));
} else error(res);
}