replaced console with the toast insterd

This commit is contained in:
RezHackXYZ 2025-06-01 12:25:08 +05:30
parent e558f3abef
commit b7047b2a19
11 changed files with 7 additions and 31 deletions

View file

@ -27,7 +27,6 @@ export function GenerateQuestionsUsingAI() {
})
.then((response) => response.json())
.then((data) => {
console.log(data);
questions.v = JSON.parse(data.choices[0].message.content);
})
.catch((error) => {

View file

@ -20,7 +20,7 @@ export async function UpLoadFiles(file) {
});
if (result.error) {
console.error("Upload error:", result.error.message);
toast.error("Upload error:"+ result.error.message);
return;
}