save some api bandwith

This commit is contained in:
2022-12-30 19:46:42 +01:00
parent e749b051b0
commit 6b769d01ba

View File

@@ -18,6 +18,7 @@ const PageMe = () => {
const [personsData, setPersonsData] = useState<personsSchema | null>(null);
useEffect(() => {
if (!user) return;
fetch("https://gractwo.pl/api/v1/admincards")
.then((res) => {
return res.json();