Oprava výchozích dat pro hlasování

This commit is contained in:
Martin Berka 2023-10-02 19:13:47 +02:00
parent c15f33323d
commit 829197e17a

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] || [];
}
/**