Skip to content

Commit

Permalink
fix checkist display for sentences (#151)
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine Jeanneney <[email protected]>
  • Loading branch information
ajeanneney and Antoine Jeanneney authored Nov 25, 2024
1 parent fad7917 commit 61aebfd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function useChecklistEntryHandler({
content.some((chunk) => {
if (chunk.type === 'text') {
return (
chunk.content.index <= sentence.start && chunk.content.index + chunk.content.text.length >= sentence.end
sentence.end > chunk.content.index && sentence.start < chunk.content.index + chunk.content.text.length
);
}
}),
Expand Down

0 comments on commit 61aebfd

Please sign in to comment.