Skip to content

Commit

Permalink
Fix: Use of integer value in a conditional rendering condition on Gra…
Browse files Browse the repository at this point in the history
…dients. (#55855)
  • Loading branch information
jorgefilipecosta authored Nov 3, 2023
1 parent d4d8571 commit 75a4489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/gradient-picker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export function GradientPicker( {
onChange={ onChange }
/>
) }
{ ( gradients.length || clearable ) && (
{ ( gradients.length > 0 || clearable ) && (
<Component
{ ...additionalProps }
className={ className }
Expand Down

0 comments on commit 75a4489

Please sign in to comment.