summaryrefslogtreecommitdiff
path: root/src/pages/index.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/index.jsx')
-rw-r--r--src/pages/index.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/index.jsx b/src/pages/index.jsx
index cd421987..12d2ab46 100644
--- a/src/pages/index.jsx
+++ b/src/pages/index.jsx
@@ -32,7 +32,7 @@ export default function Home() {
const handleOnLoad = () => {
wrapperRef.current.style.height =
- bannerRef.current.querySelector(':first-child').clientHeight + 'px'
+ bannerRef.current?.querySelector(':first-child')?.clientHeight + 'px'
}
return (