From c15f33323d70d84d2e281595574fb36c29f31802 Mon Sep 17 00:00:00 2001 From: Martin Berka Date: Sun, 1 Oct 2023 19:27:34 +0200 Subject: [PATCH] =?UTF-8?q?Oprava=20po=C4=8D=C3=A1te=C4=8Dn=C3=ADho=20hlas?= =?UTF-8?q?ov=C3=A1n=C3=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/voting.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/voting.ts b/server/src/voting.ts index 97dc9b8..dd91e3a 100644 --- a/server/src/voting.ts +++ b/server/src/voting.ts @@ -16,7 +16,7 @@ const STORAGE_KEY = 'voting'; */ export async function getUserVotes(login: string) { const data: VotingData = await storage.getData(STORAGE_KEY); - return data[login]; + return data?.[login]; } /**