Oprava počátečního hlasování
This commit is contained in:
parent
8e285e9197
commit
c15f33323d
@ -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];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user