Skip to content

Commit

Permalink
Conditional rendering and use only one paragraph
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikey Stengel committed Dec 4, 2023
1 parent c8b844f commit 07452b1
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,17 @@ export function WizardFooter({
? exerciseGenerationString.generateExercisesButton
: exerciseGenerationString.generateExerciseButton}
</button>
{isNonMathSubject && (
<p className="mb-2 mt-2 self-end text-right text-sm text-gray-600">
{isNonMathSubject ? (
<p className="mb-2 self-end text-right text-sm text-gray-600">
Bitte beachte, dass das Feature für Matheaufgaben optimiert wurde.
Die KI kann inkorrekte Lösungen erstellen. Bitte überprüfe die
Inhalte.
</p>
) : (
<p className="mb-2 self-end text-right text-sm text-gray-600">
{exerciseGenerationString.hallucinationWarning}
</p>
)}
<p className="mb-2 self-end text-right text-sm text-gray-600">
{exerciseGenerationString.hallucinationWarning}
</p>
</>
) : (
<button
Expand Down

0 comments on commit 07452b1

Please sign in to comment.