Skip to content

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amal-k-joy committed Jan 16, 2025
1 parent 5735a1b commit d53e10a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ export const ConditionBuilderButton = ({
...rest
}: ConditionBuilderButtonProps) => {
const [tooltipText, setTooltipText] = useState(label);

useEffect(() => {
if (description) {
setTooltipText(description as string);
} else {
setTooltipText(label);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [description]);
}, [description, label]);

const carbonPrefix = usePrefix();
const Button = () => {
Expand Down

0 comments on commit d53e10a

Please sign in to comment.