Skip to content

Commit 2279a9f

Browse files
committed
fix(overlay-sandbox): fix removeOverlay conditions (Issue #3072)
1 parent 59897a4 commit 2279a9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: apps/overlay-sandbox/app/cases/components/chatOverlayManagerWrapper.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const ChatOverlayManagerWrapper: React.FC<
4444
overlayManager.current?.removeOverlay(overlayManagerOptions.id);
4545
}
4646
};
47-
});
47+
}, [overlayManager.current, created]);
4848

4949
useEffect(() => {
5050
overlayManager.current?.subscribe(

0 commit comments

Comments
 (0)