Skip to content

Commit 1e77dd5

Browse files
gabrieljablonskiGabriel Jablonski
authored andcommitted
fix: properly update content when it is empty
1 parent dd25446 commit 1e77dd5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/components/TooltipController/TooltipController.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,10 @@ const TooltipController = ({
109109
}
110110

111111
useEffect(() => {
112-
if (content) {
113-
setIsHtmlContent(false)
114-
setTooltipContent(content)
115-
}
112+
setIsHtmlContent(false)
113+
setTooltipContent(content)
116114
if (html) {
117-
// html will always take precedence
115+
// html will take precedence
118116
setIsHtmlContent(true)
119117
setTooltipContent(html)
120118
}

0 commit comments

Comments
 (0)