Nové možnosti hlasování

This commit is contained in:
2024-04-11 22:00:34 +02:00
parent ff2d9e4fdb
commit 7e061aa890
4 changed files with 12 additions and 7 deletions

View File

@@ -46,8 +46,8 @@ export async function updateFeatureVote(login: string, option: FeatureRequest, a
}
}
} else if (active) {
if (data[login].length == 3) {
throw Error('Je možné hlasovat pro maximálně 3 možnosti');
if (data[login].length == 4) {
throw Error('Je možné hlasovat pro maximálně 4 možnosti');
}
data[login].push(option);
}