From bd58cbad7d933ff818096adb6659eb9aab00e0e8 Mon Sep 17 00:00:00 2001 From: Lucas Santana Date: Thu, 16 Jan 2025 08:49:56 -0300 Subject: [PATCH] =?UTF-8?q?feat:=20Mudando=20nome=20do=20app=20de=20Hist?= =?UTF-8?q?=C3=B3rias=20M=C3=A1gicas=20para=20Leiturama?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/story/StoryGenerator.tsx | 2 +- src/pages/student-dashboard/ExercisePage.tsx | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/story/StoryGenerator.tsx b/src/components/story/StoryGenerator.tsx index 9cec729..aab010e 100644 --- a/src/components/story/StoryGenerator.tsx +++ b/src/components/story/StoryGenerator.tsx @@ -156,7 +156,7 @@ export function StoryGenerator() { // Track story generation const selectedTheme = themes?.find(t => t.id === choices.theme_id)?.title || ''; const generationTime = Date.now() - startTime.current; - const wordCount = updatedStory.content.pages.reduce((acc, page) => + const wordCount = updatedStory.content.pages.reduce((acc: number, page: { text: string }) => acc + page.text.split(/\s+/).length, 0); trackStoryGenerated({ diff --git a/src/pages/student-dashboard/ExercisePage.tsx b/src/pages/student-dashboard/ExercisePage.tsx index 1edde6c..a219f34 100644 --- a/src/pages/student-dashboard/ExercisePage.tsx +++ b/src/pages/student-dashboard/ExercisePage.tsx @@ -138,18 +138,22 @@ export function ExercisePage() { w.word)} storyId={storyId as string} + studentId={exerciseData.story.student_id} /> ); case 'sentence-completion': return ( ); case 'pronunciation-practice': return ( w.word)} + storyId={storyId as string} + studentId={exerciseData.story.student_id} /> ); default: