const chapters = [
  { label: "Mon profil", name: "profil" },
  { label: "Mon foyer", name: "foyer" },
  { label: "Mon logement", name: "logement" },
  { label: "Mes revenus", name: "revenus" },
  { label: "Mes projets", name: "projets" },
  { label: "Mes resultats", name: "resultats" },
]

function getChapters() {
  return chapters
}

function getSommaireChapters() {
  return chapters.filter((c) => c.name !== "resultats")
}

function getLabel(name) {
  const chapter = chapters.find((c) => c.name === name)
  return (chapter && chapter.label) || "Ma simulation"
}

const Chapters = {
  getLabel,
  getChapters,
  getSommaireChapters,
}

export default Chapters

@@ -250,17 +250,17 @@
 : %22Mes r
-e
+%C3%A9
 sultats%22

Corrige une typo dans la page de résultats (#1712)