Nové možnosti hlasování
This commit is contained in:
1 parent
ff2d9e4fdb
commit
7e061aa890
4 files changed
+12
-7
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user