From 0668d335c2cde64c4e4f6ae153faeea3594ac49a Mon Sep 17 00:00:00 2001 From: Daniele Guido Date: Mon, 8 Jan 2024 16:51:06 +0100 Subject: [PATCH] obfuscate chapters not collected yet --- src/pages/Chapters.jsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pages/Chapters.jsx b/src/pages/Chapters.jsx index a2e8fa0..33ec9c1 100644 --- a/src/pages/Chapters.jsx +++ b/src/pages/Chapters.jsx @@ -37,7 +37,13 @@ const Chapters = () => { console.debug('[Chapters] onFlipped', flipped) if (notFound || flipped) { setSelectedChapterIdx(idx) - setSentences(wrapSentences(data[idx].sentences, data[idx].url, data[idx].title)) + if (notFound) { + setSentences([ + `"${data[idx].title}" is still missing...

(hint: the related object of the chapter is somewhere on this island).`, + ]) + } else { + setSentences(wrapSentences(data[idx].sentences, data[idx].url, data[idx].title)) + } } else { setSelectedChapterIdx(-1) setSentences([])