mirror of
https://github.com/Wolvan/poll.horse.git
synced 2024-11-25 14:08:01 +01:00
Only save valid options
Empty options are not valid options
This commit is contained in:
parent
d383d501f1
commit
8a304c763b
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ export default async function init(router: Router): Promise<void> {
|
|||
options: (() => {
|
||||
const result: { [option: string]: number } = {};
|
||||
for (const option of options) {
|
||||
result[option] = 0;
|
||||
if (option) result[option] = 0;
|
||||
}
|
||||
return result;
|
||||
})(),
|
||||
|
|
Loading…
Reference in a new issue