diff --git a/app/(chat)/api/chat/route.ts b/app/(chat)/api/chat/route.ts index e574d7d..d0f3b98 100644 --- a/app/(chat)/api/chat/route.ts +++ b/app/(chat)/api/chat/route.ts @@ -155,7 +155,7 @@ export async function POST(request: Request) { }); }, onError: () => { - return 'Oops, an error occured!'; + return 'Oops, an error occurred!'; }, }); } catch (error) { diff --git a/components/chat.tsx b/components/chat.tsx index f0fb979..2a919b1 100644 --- a/components/chat.tsx +++ b/components/chat.tsx @@ -52,7 +52,7 @@ export function Chat({ mutate(unstable_serialize(getChatHistoryPaginationKey)); }, onError: () => { - toast.error('An error occured, please try again!'); + toast.error('An error occurred, please try again!'); }, });