Skip to content

Commit

Permalink
fix: cannot set caption to undefined as it was strict string
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeocodes committed May 4, 2024
1 parent de02fd7 commit 8c76d48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ import {
import Visualizer from "./Visualizer";

const App: () => JSX.Element = () => {
const [caption, setCaption] = useState<string>("Powered by Deepgram");
const [caption, setCaption] = useState<string | undefined>(
"Powered by Deepgram"
);
const { connection, connectToDeepgram, connectionState } = useDeepgram();
const { setupMicrophone, microphone, startMicrophone, microphoneState } =
useMicrophone();
Expand Down

0 comments on commit 8c76d48

Please sign in to comment.