Skip to content

Commit

Permalink
fix(webpage): remove required validation to phone in pressure form
Browse files Browse the repository at this point in the history
  • Loading branch information
igr-santos committed Oct 29, 2024
1 parent 9f3832c commit 702ca00
Showing 1 changed file with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,16 @@ const PressureForm = ({
</SelectField>
</WrapInputs>
)}
{BeforeStandardFields && <MemoBeforeStandardFields />}
{showPhone && showPhone == 's' && (
<WrapInputs>
<InputField
label={t('Pressure Phone Label')}
name="phone"
placeholder={t('Pressure Phone Placeholder')}
/>
</WrapInputs>
)}
<WrapInputs>
<InputField
label={t('Pressure Name Label')}
Expand All @@ -163,17 +173,6 @@ const PressureForm = ({
validate={required(t('Pressure Blank Validation'))}
/>
</WrapInputs>
{BeforeStandardFields && <MemoBeforeStandardFields />}
{showPhone && showPhone == 's' && (
<WrapInputs>
<InputField
label={t('Pressure Phone Label')}
name="phone"
placeholder={t('Pressure Phone Placeholder')}
validate={required(t('Pressure Blank Validation'))}
/>
</WrapInputs>
)}
{showState && showState === 's' && (
<WrapInputs>
<SelectField
Expand Down

0 comments on commit 702ca00

Please sign in to comment.