Skip to content

Commit da3df5e

Browse files
committed
Fixed test failure with required property in text area form field
1 parent 5b2d104 commit da3df5e

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/molecules/form-fields/select-form-field.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ const SelectFormField: React.FC<SelectFormFieldProps> = (
5858
<div className={`${COMPONENT_CLASS} ${cssIsValid}`}>
5959
<label htmlFor={fieldId}>
6060
{label}
61-
{// if
62-
required && "*"}
61+
{required ? "*" : ""}
6362
</label>
6463
<Select options={values} id={id} onChange={onChange} name={name} />
6564
<div className={`${COMPONENT_CLASS}__errors`}>

src/molecules/form-fields/text-area-form-field.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ const TextAreaFormField: React.FC<TextAreaFormFieldProps> = (
6969
<div className={`${COMPONENT_CLASS} ${cssIsValid}`}>
7070
<label htmlFor={fieldId}>
7171
{label}
72-
{// if
73-
required ?? "*"}
72+
{required ? "*" : ""}
7473
</label>
7574
<TextArea
7675
disabled={disabled}

0 commit comments

Comments
 (0)