From a333415630901fbe5ead916bf411ae87d14353d3 Mon Sep 17 00:00:00 2001 From: Ryderjj89 Date: Sat, 13 Sep 2025 15:44:56 -0400 Subject: [PATCH] Fix chapter file naming to use Chapter_XX.md format --- frontend/src/components/BibleReader.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/BibleReader.tsx b/frontend/src/components/BibleReader.tsx index f9c54fee..c817bd9e 100644 --- a/frontend/src/components/BibleReader.tsx +++ b/frontend/src/components/BibleReader.tsx @@ -22,11 +22,12 @@ const BibleReader: React.FC = ({ book, chapter, onBack }) => { setLoading(true); console.log(`Loading chapter: ${book}/${chapter}`); - // Pad chapter number with leading zero if needed + // Format chapter as "Chapter_XX" with leading zero const paddedChapter = chapter.padStart(2, '0'); - console.log(`Padded chapter: ${paddedChapter}`); + const chapterFileName = `Chapter_${paddedChapter}`; + console.log(`Chapter file name: ${chapterFileName}`); - const chapterContent = await getChapter(book, paddedChapter); + const chapterContent = await getChapter(book, chapterFileName); setContent(chapterContent); } catch (error) { console.error('Failed to load chapter:', error);