From 88a95ac6e8224c7b46d06738a3546176f0f39c10 Mon Sep 17 00:00:00 2001 From: Diya Sundeep Date: Sat, 4 Nov 2023 22:50:02 +0530 Subject: [PATCH] feat(hacktoberfest): fetch data error removed --- src/Pages/Events/HacktoberFest/HacktoberFest.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Pages/Events/HacktoberFest/HacktoberFest.jsx b/src/Pages/Events/HacktoberFest/HacktoberFest.jsx index 89fe65077..f55f8df6b 100644 --- a/src/Pages/Events/HacktoberFest/HacktoberFest.jsx +++ b/src/Pages/Events/HacktoberFest/HacktoberFest.jsx @@ -5,7 +5,7 @@ import Navbar from "../../../Components/Navbar/Navbar"; import styles from "./HacktoberFest.module.css"; const HacktoberFest = () => { - const [error,setError]= useState() + const [error]= useState() const [profiles,setProfiles] = useState([]) const [pyProfiles,setpyProfiles] = useState([]) axios.get("https://opensheet.elk.sh/1r5Pav8TlUEao_9GuMcFasKUEPSDIJOPB9PXKbt4KlTQ/hacktoberfest").then( @@ -14,7 +14,7 @@ const HacktoberFest = () => { }) .catch((error) => { console.log(error); - setError("We are currently facing some difficulties in fetching the data at the moment, will be back soon.") + }); axios.get("https://opensheet.elk.sh/1r5Pav8TlUEao_9GuMcFasKUEPSDIJOPB9PXKbt4KlTQ/info").then( @@ -23,7 +23,7 @@ const HacktoberFest = () => { }) .catch((error) => { console.log(error); - setError("We are currently facing some difficulties in fetching the data at the moment, will be back soon.") + });