logic done

This commit is contained in:
=
2026-04-24 17:44:39 +10:00
parent 4e2f4eb525
commit 4532122dee
6 changed files with 53 additions and 31 deletions

View File

@@ -14,7 +14,7 @@ function Matching({ tasks, index }: ComponentProps) {
const answers: string[] = tasks.map((item) => String(item.answer));
// Добавляем список ответов очередного задания в хранилище
useEffect(() => {
dispatch(addList({ index, items: answers, answers:answers, quizType: "M" }));
dispatch(addList({ index, items: answers, answers:answers,questions:tasks.map((item) => String(item.question)), quizType: "M" }));
}, []);
useEffect(() => {