Skip to content

Commit 7145544

Browse files
committed
🤖 Fix nullish coalescing in toggle-group
1 parent 91d1b39 commit 7145544

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ui/toggle-group.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ const ToggleGroupItem = React.forwardRef<
4040
ref={ref}
4141
className={cn(
4242
toggleVariants({
43-
variant: context.variant || variant,
44-
size: context.size || size,
43+
variant: context.variant ?? variant,
44+
size: context.size ?? size,
4545
}),
4646
className
4747
)}

0 commit comments

Comments
 (0)