diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js
index df7ac4aec7d6..ebcf346802a0 100644
--- a/frontend/.eslintrc.js
+++ b/frontend/.eslintrc.js
@@ -170,13 +170,7 @@ module.exports = {
"@typescript-eslint/no-unnecessary-type-arguments": "error",
"@typescript-eslint/prefer-string-starts-ends-with": "error",
"@typescript-eslint/switch-exhaustiveness-check": "error",
- "@typescript-eslint/restrict-template-expressions": [
- "error",
- {
- allowNumber: true,
- allowBoolean: true,
- },
- ],
+ "@typescript-eslint/restrict-template-expressions": "off",
},
},
],
diff --git a/frontend/app/chat/[chatId]/components/ActionsBar/components/ChatInput/index.tsx b/frontend/app/chat/[chatId]/components/ActionsBar/components/ChatInput/index.tsx
index 55fb7d5e88c8..22dd6bd6d82d 100644
--- a/frontend/app/chat/[chatId]/components/ActionsBar/components/ChatInput/index.tsx
+++ b/frontend/app/chat/[chatId]/components/ActionsBar/components/ChatInput/index.tsx
@@ -1,7 +1,7 @@
"use client";
-import { useTranslation } from "react-i18next";
-import Button from "@/lib/components/ui/Button";
+import Icon from "@/lib/components/ui/Icon/Icon";
+import { LoaderIcon } from "@/lib/components/ui/LoaderIcon/LoaderIcon";
import { OnboardingQuestions } from "./components";
import { ChatEditor } from "./components/ChatEditor/ChatEditor";
@@ -11,7 +11,11 @@ export const ChatInput = (): JSX.Element => {
const { setMessage, submitQuestion, generatingAnswer, message } =
useChatInput();
- const { t } = useTranslation(["chat"]);
+ const handleSubmitQuestion = () => {
+ if (message.trim() !== "") {
+ submitQuestion();
+ }
+ };
return (
<>
@@ -21,7 +25,7 @@ export const ChatInput = (): JSX.Element => {
data-testid="chat-input-form"
onSubmit={(e) => {
e.preventDefault();
- submitQuestion();
+ handleSubmitQuestion();
}}
className="sticky bottom-0 bg-white dark:bg-black w-full flex items-center gap-2 z-20 p-2"
>
@@ -29,22 +33,21 @@ export const ChatInput = (): JSX.Element => {