Skip to content

Commit

Permalink
OpenAI section only renders in the results route
Browse files Browse the repository at this point in the history
  • Loading branch information
HRemonen committed Mar 27, 2023
1 parent bda48cf commit a701b2d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/client/components/InteractiveForm/InteractiveForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,18 @@ const InteractiveForm = () => {
path="results"
element={
resultData ? (
<Results formResultData={resultData} watch={watch} />
<>
<Results formResultData={resultData} watch={watch} />
<Grid item sm={12}>
<Openai watch={watch} />
</Grid>
</>
) : (
<Navigate replace to="/" />
)
}
/>
</Routes>
{resultData && (
<Grid item sm={12}>
<Openai watch={watch} />
</Grid>
)}
</Grid>
<Grid item sm={12} md={5} xl={4}>
<Recommendations watch={watch} />
Expand Down

0 comments on commit a701b2d

Please sign in to comment.