Skip to content

Commit e2b380a

Browse files
Update src/components/Footer/index.jsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 34de2bb commit e2b380a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/Footer/index.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ const Footer = () => {
2929
document.body.appendChild(script);
3030

3131
return () => {
32-
document.body.removeChild(script);
32+
if (document.body.contains(script)) {
33+
document.body.removeChild(script);
34+
}
3335
};
3436
}, []);
3537
return (

0 commit comments

Comments
 (0)