From 6b769d01ba5c2edba5cc007bcc31220e34ed31fc Mon Sep 17 00:00:00 2001 From: jakubmanczak Date: Fri, 30 Dec 2022 19:46:42 +0100 Subject: [PATCH] save some api bandwith --- pages/ja/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/ja/index.tsx b/pages/ja/index.tsx index d9e084b..872ebca 100644 --- a/pages/ja/index.tsx +++ b/pages/ja/index.tsx @@ -18,6 +18,7 @@ const PageMe = () => { const [personsData, setPersonsData] = useState(null); useEffect(() => { + if (!user) return; fetch("https://gractwo.pl/api/v1/admincards") .then((res) => { return res.json();