Skip to content

Commit

Permalink
feat: enable optional email input for storage mode as well
Browse files Browse the repository at this point in the history
  • Loading branch information
g-tejas committed Jan 24, 2025
1 parent 00f2848 commit 45365aa
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,13 @@ export const CreateFormDetailsScreen = (): JSX.Element => {
</InlineMessage>
)}
</FormControl>
{responseModeValue === FormResponseMode.Email && (
<FormControl isRequired isInvalid={!!errors.emails} mb="2.25rem">
{(responseModeValue === FormResponseMode.Encrypt ||
responseModeValue === FormResponseMode.Email) && (
<FormControl
isRequired={responseModeValue === FormResponseMode.Email}
isInvalid={!!errors.emails}
mb="2.25rem"
>
<FormLabel
useMarkdownForDescription
description={`All email addresses below will be notified. Learn more on [how to guard against email bounces](${GUIDE_PREVENT_EMAIL_BOUNCE}).`}
Expand Down

0 comments on commit 45365aa

Please sign in to comment.