logic done
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user