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