Browse Source

fix useEffect missing dependency

AykutSarac 2 years ago
parent
commit
c173a140f4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/pages/widget.tsx

+ 1 - 1
src/pages/widget.tsx

@@ -52,7 +52,7 @@ const Widget = () => {
     }
 
     if (!inIframe()) push("/");
-  }, [query?.json]);
+  }, [query?.json, push]);
 
   return (
     <div>