fix that you can generate ai options without a topic
This commit is contained in:
parent
ba4025988f
commit
b2906bd53b
1 changed files with 5 additions and 0 deletions
|
@ -63,6 +63,11 @@ The user's topic of interest is:
|
|||
"Enter the topic and number of questions you want with any instructions for the ai, note: doing this will delete all you previous questions and its not undo able",
|
||||
);
|
||||
|
||||
if (!userInput) {
|
||||
toast.error("Please enter the topic to generate questions.");
|
||||
return;
|
||||
}
|
||||
|
||||
await toast.promise(
|
||||
(async () => {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue