Only save valid options

Empty options are not valid options
This commit is contained in:
Wolvan 2021-12-29 14:24:33 +01:00
parent d383d501f1
commit 8a304c763b

View file

@ -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;
})(),