Skip to content

Commit

Permalink
obfuscate chapters not collected yet
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleguido committed Jan 8, 2024
1 parent 3f12b68 commit 0668d33
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/pages/Chapters.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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...<br/><br/>(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([])
Expand Down

0 comments on commit 0668d33

Please sign in to comment.