Skip to content

Commit 453f4e7

Browse files
committed
cleanup
1 parent 10d06a9 commit 453f4e7

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

frontend/src/components/request-invitation-letter-page-handler/invitation-letter-form.tsx

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -201,28 +201,28 @@ export const InvitationLetterForm = ({
201201
</Text>
202202
)}
203203

204-
{onBehalfOfOther && (
205-
<InputWrapper
206-
required={true}
207-
title={
208-
<FormattedMessage id="invitationLetterForm.email.title" />
209-
}
210-
description={
211-
<FormattedMessage id="invitationLetterForm.email.description" />
212-
}
213-
>
214-
<Input
215-
{...email("email")}
216-
required={true}
217-
maxLength={320}
218-
placeholder={inputPlaceholder}
219-
errors={getErrors("email")}
220-
/>
221-
</InputWrapper>
222-
)}
223-
224204
{canSeeForm && (
225205
<>
206+
{onBehalfOfOther && (
207+
<InputWrapper
208+
required={true}
209+
title={
210+
<FormattedMessage id="invitationLetterForm.email.title" />
211+
}
212+
description={
213+
<FormattedMessage id="invitationLetterForm.email.description" />
214+
}
215+
>
216+
<Input
217+
{...email("email")}
218+
required={true}
219+
maxLength={320}
220+
placeholder={inputPlaceholder}
221+
errors={getErrors("email")}
222+
/>
223+
</InputWrapper>
224+
)}
225+
226226
<InputWrapper
227227
required={true}
228228
title={

0 commit comments

Comments
 (0)