🚨 Fixed linter errors (removed console.log's)
This commit is contained in:
@@ -63,12 +63,9 @@ export const dataSchema = yup.object({
|
||||
.lowercase(),
|
||||
answers: yup.lazy((v) => {
|
||||
if (Array.isArray(v)) {
|
||||
console.log(v);
|
||||
if (typeof v[0].right === 'boolean') {
|
||||
console.log('Yup, ABCD');
|
||||
return ABCDQuestionSchema;
|
||||
} else {
|
||||
console.log('Yup, Poll');
|
||||
return VotingQuestionSchema;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user