diff --git a/apps/portal/src/components/questions/forms/ContributeQuestionForm.tsx b/apps/portal/src/components/questions/forms/ContributeQuestionForm.tsx index 10aa33ef..bfbca030 100644 --- a/apps/portal/src/components/questions/forms/ContributeQuestionForm.tsx +++ b/apps/portal/src/components/questions/forms/ContributeQuestionForm.tsx @@ -5,7 +5,7 @@ import { ArrowPathIcon } from '@heroicons/react/20/solid'; import type { QuestionsQuestionType } from '@prisma/client'; import type { TypeaheadOption } from '@tih/ui'; import { CheckboxInput } from '@tih/ui'; -import { Button, HorizontalDivider, Select, TextArea } from '@tih/ui'; +import { Button, Select, TextArea } from '@tih/ui'; import { QUESTION_TYPES } from '~/utils/questions/constants'; import relabelQuestionAggregates from '~/utils/questions/relabelQuestionAggregates'; @@ -187,11 +187,9 @@ export default function ContributeQuestionForm({ /> -
- No similar questions found. -
- )} + {similarQuestions?.length === 0 && + contentToCheck?.length !== 0 && + questionContent === contentToCheck && ( ++ No similar questions found. +
+ )}