From 9163b5c1e5e2e7ccdec6a7f021e3abb60853b387 Mon Sep 17 00:00:00 2001 From: Koper Date: Thu, 20 Jul 2023 00:44:19 +0700 Subject: [PATCH] getting rid of legacy code --- app/page.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/page.js b/app/page.js index ea3fee00..b104eb03 100644 --- a/app/page.js +++ b/app/page.js @@ -29,7 +29,6 @@ const App = () => { }; const serverData = useWebRTC(stream, setIsRecording); - const text = serverData?.text ?? ""; return (
@@ -43,7 +42,7 @@ const App = () => { handleRecord(recording)} - transcriptionText={text ?? "(No transcription text)"} + transcriptionText={serverData.text ?? "(No transcription text)"} finalSummary={serverData.finalSummary} topics={serverData.topics ?? []} stream={stream}