fix poll validation

This commit is contained in:
keyan 2023-02-12 06:23:40 -06:00
parent c941c76292
commit f258d6da1c
1 changed files with 1 additions and 1 deletions

View File

@ -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(