From 1b675fdd3ee638f9f178c620100d9d4651b6d668 Mon Sep 17 00:00:00 2001 From: Giovanni Date: Mon, 15 Jun 2026 11:41:16 +0200 Subject: [PATCH] update fetch url to match new api prefix --- src/pages/Home/HomePage.jsx | 2 +- src/pages/Home/components/Experiences/Experiences.jsx | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/pages/Home/HomePage.jsx b/src/pages/Home/HomePage.jsx index ae599ba..8242ca9 100644 --- a/src/pages/Home/HomePage.jsx +++ b/src/pages/Home/HomePage.jsx @@ -24,7 +24,7 @@ function HomePage() { return (
- +
diff --git a/src/pages/Home/components/Experiences/Experiences.jsx b/src/pages/Home/components/Experiences/Experiences.jsx index 8f622c0..2684a13 100644 --- a/src/pages/Home/components/Experiences/Experiences.jsx +++ b/src/pages/Home/components/Experiences/Experiences.jsx @@ -4,7 +4,6 @@ import React, {useEffect, useState} from "react"; function Experiences() { const [experiences, setExperiences] = useState([]); - const [experienceTasks, setExperienceTasks] = useState([]); const [error, setError] = useState(null); useEffect(() => { @@ -31,9 +30,13 @@ function Experiences() {

Experiences

- {experiences.map((exp) => ( - - ))} + {experiences ? ( + experiences.map((exp) => ( + + )) + ) : ( +

Chargement...

+ )}
);