From 8c76d48c819bab0faa7219a7d76a064b2e7000d6 Mon Sep 17 00:00:00 2001 From: Luke Date: Sat, 4 May 2024 09:22:27 -0700 Subject: [PATCH] fix: cannot set caption to undefined as it was strict string --- app/components/App.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/components/App.tsx b/app/components/App.tsx index 0585397a..89a9a4ef 100644 --- a/app/components/App.tsx +++ b/app/components/App.tsx @@ -15,7 +15,9 @@ import { import Visualizer from "./Visualizer"; const App: () => JSX.Element = () => { - const [caption, setCaption] = useState("Powered by Deepgram"); + const [caption, setCaption] = useState( + "Powered by Deepgram" + ); const { connection, connectToDeepgram, connectionState } = useDeepgram(); const { setupMicrophone, microphone, startMicrophone, microphoneState } = useMicrophone();