Skip to content

Commit 892e84e

Browse files
Update src/utils/handle-style.ts
Co-authored-by: Gabriel Jablonski <[email protected]>
1 parent 32dcff7 commit 892e84e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/utils/handle-style.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ function injectStyle(css: string, ref?: any) {
3737

3838
function removeStyle() {
3939
const style = document.getElementById(REACT_TOOLTIP_STYLES_ID)
40-
if (!style) {
41-
return
42-
}
43-
style.remove()
40+
style?.remove()
4441
}
4542

4643
export { injectStyle, removeStyle }

0 commit comments

Comments
 (0)