From 4bd5e16f0e80835a2778706ecf231f5960a83cac Mon Sep 17 00:00:00 2001 From: Louis Date: Tue, 27 Jun 2023 15:47:30 +0200 Subject: [PATCH] fix: :bug: Fix ip loading and page name --- index.html | 2 +- src/App.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index e0d1c84..1d0f07a 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - Vite + React + TS + Garfield IP
diff --git a/src/App.tsx b/src/App.tsx index 21807fb..a4ae49d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -7,9 +7,9 @@ function App() { const [ip, setIP] = useState('') const getData = async () => { - const res = await axios.get('https://api.ipify.org?format=json'); - console.log(res.data.ip) - setIP(res.data.ip); + const res = await axios.get('https://ifconfig.louisgallet.fr/ip'); + console.log(res.data) + setIP(res.data); } useEffect(() => {