diff --git a/src/components/CurrentlyReading.tsx b/src/components/CurrentlyReading.tsx index b75fc12..ed2875e 100644 --- a/src/components/CurrentlyReading.tsx +++ b/src/components/CurrentlyReading.tsx @@ -22,12 +22,25 @@ export const CurrentlyReading = ({ currentWordRange[1] ) : ""; + const currentSentence = sentences.length ? sentences[currentSentenceIdx] : ""; + const currentContent = currentSentence + .split("") + .toSpliced( + currentWordRange[0], + currentWordRange[1], + `${currentWord}` + ) + .join(""); + return (
{currentSentence}
+ +{sentences.join(" ")}