From b86d6b31b3a5f1ed6e963e8f5699c8b66e2f2a75 Mon Sep 17 00:00:00 2001 From: xenseing Date: Mon, 20 Jul 2026 04:57:43 +0530 Subject: [PATCH] fix: add fallback chat error message --- components/chat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/chat.tsx b/components/chat.tsx index 1dcb64b..84ba38e 100644 --- a/components/chat.tsx +++ b/components/chat.tsx @@ -23,7 +23,7 @@ export function Chat({ id, initialMessages, className }: ChatProps) { body: { id }, onResponse(response) { if (response.status !== 200) { - toast.error(response.statusText) + toast.error(response.statusText || 'Something went wrong. Please try again.') } } })