Oprava počátečního hlasování

This commit is contained in:
Martin Berka 2023-10-01 19:27:34 +02:00
parent 8e285e9197
commit c15f33323d

View File

@ -16,7 +16,7 @@ const STORAGE_KEY = 'voting';
*/ */
export async function getUserVotes(login: string) { export async function getUserVotes(login: string) {
const data: VotingData = await storage.getData(STORAGE_KEY); const data: VotingData = await storage.getData(STORAGE_KEY);
return data[login]; return data?.[login];
} }
/** /**