From 8a304c763bd13635b7d4438c0e5391b4bf17d530 Mon Sep 17 00:00:00 2001 From: Wolvan Date: Wed, 29 Dec 2021 14:24:33 +0100 Subject: [PATCH] Only save valid options Empty options are not valid options --- src/backend.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend.ts b/src/backend.ts index 3990fe0..f4b51b0 100644 --- a/src/backend.ts +++ b/src/backend.ts @@ -90,7 +90,7 @@ export default async function init(router: Router): Promise { options: (() => { const result: { [option: string]: number } = {}; for (const option of options) { - result[option] = 0; + if (option) result[option] = 0; } return result; })(),