Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrpospiech committed Feb 22, 2024
1 parent c3f1cf5 commit 0abff32
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/uniforms/__tests__/connectField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,13 @@ describe('connectField', () => {
props: UnknownObject & {
onChange: OnChange<string>;
label?: string | React.ReactNode;
id: string;
},
) => {
return props.children ? (
<>
{props.label ? (
<label htmlFor={props.id as string} data-testid="label">
<label htmlFor={props.id} data-testid="label">
{props.label}
</label>
) : null}
Expand All @@ -65,7 +66,7 @@ describe('connectField', () => {
) : (
<>
{props.label ? (
<label htmlFor={props.id as string} data-testid="label">
<label htmlFor={props.id} data-testid="label">
{props.label}
</label>
) : null}
Expand Down

0 comments on commit 0abff32

Please sign in to comment.