fix: rules
This commit is contained in:
parent
529b0336e6
commit
98d5696046
@ -121,14 +121,18 @@ export const Footer = ({
|
||||
i++ // Цикл по всем элементам бОльшего массива
|
||||
) {
|
||||
if (Array.isArray(answer?.answer)) {
|
||||
if (answer?.answer.find((item) => item === rules[0].answers[i])) {
|
||||
if (
|
||||
answer?.answer.find((item) =>
|
||||
String(item === rules[0].answers[i])
|
||||
)
|
||||
) {
|
||||
readyBeNextQuestion = next; // Если хоть один элемент отличается, массивы не равны
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (rules[0].answers[i] === answer?.answer) {
|
||||
if (String(rules[0].answers[i]) === answer?.answer) {
|
||||
readyBeNextQuestion = next; // Если хоть один элемент отличается, массивы не равны
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user