Nové možnosti hlasování
This commit is contained in:
@@ -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