mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
round reading progress to 100% if more than that
round reading progress to 100% if more than that round reading progress to 100% if more than that
This commit is contained in:
parent
17edc482f6
commit
4c535147f1
1 changed files with 2 additions and 1 deletions
|
|
@ -66,7 +66,8 @@ export function Article(props: ArticleProps): JSX.Element {
|
|||
if (!readingProgress) return
|
||||
await articleReadingProgressMutation({
|
||||
id: props.articleId,
|
||||
readingProgressPercent: readingProgress,
|
||||
// round reading progress to 100% if more than that
|
||||
readingProgressPercent: readingProgress > 100 ? 100 : readingProgress,
|
||||
readingProgressAnchorIndex: readingAnchorIndex,
|
||||
})
|
||||
})()
|
||||
|
|
|
|||
Loading…
Reference in a new issue