Skip to content

Commit 54aff3d

Browse files
committed
fix #281 partial revert of #275
1 parent 017e5ea commit 54aff3d

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/shared/Fieldset.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,12 @@ export const Fieldset = memo(
167167
name={radioName}
168168
{...nativeInputProps}
169169
/>
170-
{Boolean(label || hintText) && (
171-
<label className={fr.cx("fr-label")} htmlFor={getInputId(i)}>
172-
{label}
173-
{hintText !== undefined && (
174-
<span className={fr.cx("fr-hint-text")}>{hintText}</span>
175-
)}
176-
</label>
177-
)}
170+
<label className={fr.cx("fr-label")} htmlFor={getInputId(i)}>
171+
{label}
172+
{hintText !== undefined && (
173+
<span className={fr.cx("fr-hint-text")}>{hintText}</span>
174+
)}
175+
</label>
178176
{"illustration" in rest && (
179177
<div className={fr.cx("fr-radio-rich__img")}>
180178
{rest.illustration}

0 commit comments

Comments
 (0)