Skip to content

Commit

Permalink
chore: type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwisecodes committed Nov 14, 2024
1 parent 8aea5c9 commit 38a798a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/nextjs/src/components/AppComponents/Chat/chat-start.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ export function ChatStart() {
setSelectedKeyStage("Key Stage 3");
setSelectedSubject("History");
setSelectedLength("60 mins");
await submit(initialPrompt);
if (typeof initialPrompt === "string") {
await submit(initialPrompt);
}
}}
>
<span className="mt-14 pb-7 text-left text-base font-light underline sm:mt-0">
Expand Down

0 comments on commit 38a798a

Please sign in to comment.