fix poll validation
This commit is contained in:
parent
c941c76292
commit
f258d6da1c
|
@ -107,7 +107,7 @@ export function linkSchema (client) {
|
|||
})
|
||||
}
|
||||
|
||||
export function pollSchema (client, numExistingChoices) {
|
||||
export function pollSchema (client, numExistingChoices = 0) {
|
||||
return Yup.object({
|
||||
title: titleValidator,
|
||||
options: Yup.array().of(
|
||||
|
|
Loading…
Reference in New Issue