From 0254e8ac99345376428fd119a27747870efae1cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=20Keskim=C3=A4ki?= Date: Fri, 17 Mar 2023 08:59:45 +0200 Subject: [PATCH] Disable ai completion text input once completion has been fetched --- src/client/components/ResultPage/Openai/CourseCompletion.tsx | 1 + src/client/components/ResultPage/Openai/DimensionCompletion.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/client/components/ResultPage/Openai/CourseCompletion.tsx b/src/client/components/ResultPage/Openai/CourseCompletion.tsx index ca4b7d24..241e7f20 100644 --- a/src/client/components/ResultPage/Openai/CourseCompletion.tsx +++ b/src/client/components/ResultPage/Openai/CourseCompletion.tsx @@ -40,6 +40,7 @@ const CourseCompletion = () => { value={courseName} onChange={({ target }) => setCourseName(target.value)} sx={{ width: 400 }} + disabled={showCompletion} />