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

This commit is contained in:
mates committed 2023-10-01 19:27:34 +02:00
1 parent 8e285e9197
commit c15f33323d
1 file changed
+1 -1
+1 -1
View File
@@ -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];
}
/**