Oprava výchozích dat pro hlasování
This commit is contained in:
@@ -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] || [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user