diff --git a/server/src/voting.ts b/server/src/voting.ts index dd91e3a..f34259e 100644 --- a/server/src/voting.ts +++ b/server/src/voting.ts @@ -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] || []; } /**