diff --git a/src/app/(app)/problems/[id]/@ai/@bot/page.tsx b/src/app/(app)/problems/[id]/@ai/@bot/page.tsx index 7b87cff..7e10d13 100644 --- a/src/app/(app)/problems/[id]/@ai/@bot/page.tsx +++ b/src/app/(app)/problems/[id]/@ai/@bot/page.tsx @@ -28,7 +28,10 @@ export default function AiBotPage() { const handleFormSubmit = useCallback( (e: React.FormEvent) => { e.preventDefault(); - if (!input.trim()) return; + if (!input.trim()) { + toast.error("Input cannot be empty"); + return; + } const currentCodeMessage = { id: problemId,