Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Commit 863fb96

Browse files
Fixed some skill issue issues
1 parent f1dd616 commit 863fb96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Components/Header.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const Header = forwardRef((props, ref) => {
4545
let profileRef = useRef();
4646
useEffect(() => {
4747
let handler = (e) => {
48-
if (!profileRef.current.contains(e.target)) {
48+
if (profileRef.current && !profileRef.current.contains(e.target)) {
4949
setProfileActive(false);
5050
}
5151
};

0 commit comments

Comments
 (0)