diff --git a/lib/api/hooks.ts b/lib/api/hooks.ts index 41341f6..75d8634 100644 --- a/lib/api/hooks.ts +++ b/lib/api/hooks.ts @@ -80,7 +80,13 @@ export function useQuizData(quizId: string, preview: boolean = false) { console.log(data); addQuestions(data.questions); changeNextLoading(false); - return data; + + // Возвращаем полную структуру данных с настройками из store + const currentState = useQuizStore.getState(); + return { + ...currentState, + questions: [...currentState.questions, ...data.questions], + }; } catch (p) { console.log(p); setPage(questions.length);