Skip to content

Commit fcaf16b

Browse files
curly braces
Co-Authored-By: Michaël De Boey <[email protected]>
1 parent 4c4e40b commit fcaf16b

File tree

1 file changed

+3
-1
lines changed
  • packages/components/src/components/Dialog

1 file changed

+3
-1
lines changed

packages/components/src/components/Dialog/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ const Content = ({ style = {}, children, ...props }) => {
116116
const [overlayVisible, setOverlayVisiblity] = React.useState(false);
117117

118118
React.useEffect(() => {
119-
if (dialogVisible) setOverlayVisiblity(true);
119+
if (dialogVisible) {
120+
setOverlayVisiblity(true);
121+
}
120122
}, [dialogVisible]);
121123

122124
return (

0 commit comments

Comments
 (0)