Remove optional chaining
This commit is contained in:
@@ -60,7 +60,8 @@
|
|||||||
formattedAnswers &&
|
formattedAnswers &&
|
||||||
formattedAnswers.some((answer) => {
|
formattedAnswers.some((answer) => {
|
||||||
if (
|
if (
|
||||||
!currentQuestion.answers?.length ||
|
!currentQuestion.answers ||
|
||||||
|
!currentQuestion.answers.length ||
|
||||||
currentQuestion.answers.includes(answer)
|
currentQuestion.answers.includes(answer)
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user