Skip to content

Commit

Permalink
fix: fix English not displaying by default for Title fields
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalinDe committed Mar 6, 2024
1 parent 7e02bb9 commit 6a40c80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions web/frontend/src/pages/form/components/AddQuestionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const AddQuestionModal: FC<AddQuestionModalProps> = ({
<label className="block text-md mt font-medium text-gray-500">
{t('title')}
</label>
{language === 'en' && (
{(language === 'en' || !['en', 'fr', 'de'].includes(language)) && (
<input
value={Title.En}
onChange={(e) => handleChange('Title')(e)}
Expand Down Expand Up @@ -241,7 +241,7 @@ const AddQuestionModal: FC<AddQuestionModalProps> = ({
<label className="block text-md mt font-medium text-gray-500">
{t('hint')}
</label>
{language === 'en' && (
{(language === 'en' || !['en', 'fr', 'de'].includes(language)) && (
<input
value={Hint.En}
onChange={(e) => handleChange('Hint')(e)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ const SubjectComponent: FC<SubjectComponentProps> = ({
</div>
{titleChanging ? (
<div className="flex flex-col mt-3 mb-2">
{language === 'en' && (
{(language === 'en' || !['en', 'fr', 'de'].includes(language)) && (
<input
value={Title.En}
onChange={(e) =>
Expand Down

0 comments on commit 6a40c80

Please sign in to comment.