Skip to content

Commit

Permalink
Fix float comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Feb 23, 2024
1 parent 30d456d commit 63b37fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/player/PreviewThumbnailPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ function InProgressPreview({
setProgress((key / (previewFrames.length - 1)) * 100);
}

if (setReviewed && key == previewFrames.length / 2) {
if (setReviewed && key == Math.floor(previewFrames.length / 2)) {
setReviewed();
}

Expand Down

0 comments on commit 63b37fb

Please sign in to comment.