From 0d28dc8ff5fb8c5399e356ed6ecae4fce2019ca6 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Sat, 31 May 2025 08:55:43 +0700
Subject: <hafid> fix repeat-order

---
 src/core/components/layouts/BasicLayout.jsx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/core/components/layouts/BasicLayout.jsx')

diff --git a/src/core/components/layouts/BasicLayout.jsx b/src/core/components/layouts/BasicLayout.jsx
index 2998fa63..81f8b41f 100644
--- a/src/core/components/layouts/BasicLayout.jsx
+++ b/src/core/components/layouts/BasicLayout.jsx
@@ -54,6 +54,8 @@ const BasicLayout = ({ children }) => {
 
   useEffect(() => {
     const handleMouseOut = (event) => {
+
+      if (!buttonRef.current) return; 
       const rect = buttonRef.current.getBoundingClientRect();
       if (event.clientY <= 0) {
         setButtonPosition(rect);
-- 
cgit v1.2.3

