Skip to content

Commit

Permalink
fix: tooltip logic
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarkhanzadian committed Jan 22, 2024
1 parent ee9728d commit 2ae8cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/ui/components/tooltip/basic-tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface BasicTooltipProps {
}

export function BasicTooltip({ children, label, disabled, side }: BasicTooltipProps) {
const isDisabled = !!label && !disabled;
const isDisabled = !label || disabled;
return (
<Tooltip.Root>
<Tooltip.Trigger>{children}</Tooltip.Trigger>
Expand Down

0 comments on commit 2ae8cf0

Please sign in to comment.