diff --git a/src/client/pages/InventorsAssistant/FourthStep.tsx b/src/client/pages/InventorsAssistant/FourthStep.tsx index 4cade574..d078dfa9 100644 --- a/src/client/pages/InventorsAssistant/FourthStep.tsx +++ b/src/client/pages/InventorsAssistant/FourthStep.tsx @@ -9,12 +9,14 @@ import LlmResponse from './LlmResponse' type FourthStepProps = { setAiResponse3: Dispatch> aiResponse: string + aiResponseReady: boolean setEditModeGlobal: Dispatch> } const FourthStep = ({ setAiResponse3, aiResponse, + aiResponseReady, setEditModeGlobal, }: FourthStepProps) => ( <> @@ -45,6 +47,7 @@ const FourthStep = ({ diff --git a/src/client/pages/InventorsAssistant/InventionReport.tsx b/src/client/pages/InventorsAssistant/InventionReport.tsx index 09d0e119..b975a40a 100644 --- a/src/client/pages/InventorsAssistant/InventionReport.tsx +++ b/src/client/pages/InventorsAssistant/InventionReport.tsx @@ -9,12 +9,14 @@ import LlmResponse from './LlmResponse' type InventionReportProps = { aiResponse: string + aiResponseReady: boolean setAiResponse: Dispatch> headingLevel: 'h2' | 'h3' } const InventionReport = ({ aiResponse, + aiResponseReady, setAiResponse, headingLevel, }: InventionReportProps) => { @@ -26,7 +28,11 @@ const InventionReport = ({ {t('inventorsAssistant:finalStepSummary')} - + ) } diff --git a/src/client/pages/InventorsAssistant/InventorPhase2.tsx b/src/client/pages/InventorsAssistant/InventorPhase2.tsx index 1f5c5d99..a989f7d7 100644 --- a/src/client/pages/InventorsAssistant/InventorPhase2.tsx +++ b/src/client/pages/InventorsAssistant/InventorPhase2.tsx @@ -82,6 +82,7 @@ const InventorPhase2 = () => { )} @@ -112,6 +113,7 @@ const InventorPhase2 = () => { )} @@ -142,6 +144,7 @@ const InventorPhase2 = () => { )} diff --git a/src/client/pages/InventorsAssistant/InventorPhase3.tsx b/src/client/pages/InventorsAssistant/InventorPhase3.tsx index 081c3749..595926cb 100644 --- a/src/client/pages/InventorsAssistant/InventorPhase3.tsx +++ b/src/client/pages/InventorsAssistant/InventorPhase3.tsx @@ -41,6 +41,7 @@ const InventorPhase3 = () => { {currentStep > 7 && ( > setEditModeGlobal?: Dispatch> } const LlmResponse = ({ aiResponse, + aiResponseReady, setEditedResponse, setEditModeGlobal, }: LlmResponseProps) => { @@ -73,7 +75,7 @@ const LlmResponse = ({ {aiResponse} - {aiResponse && aiResponse.length > 0 && ( + {aiResponse && aiResponseReady && (