diff options
Diffstat (limited to 'animism-align/frontend/app/views/paragraph/components/paragraph.list.js')
| -rw-r--r-- | animism-align/frontend/app/views/paragraph/components/paragraph.list.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/animism-align/frontend/app/views/paragraph/components/paragraph.list.js b/animism-align/frontend/app/views/paragraph/components/paragraph.list.js index 02db0e2..473a0e9 100644 --- a/animism-align/frontend/app/views/paragraph/components/paragraph.list.js +++ b/animism-align/frontend/app/views/paragraph/components/paragraph.list.js @@ -3,7 +3,7 @@ import { Route } from 'react-router-dom' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' -import { floatLT, floatLTE } from 'app/utils' +import { floatLT, floatInRange } from 'app/utils' import ParagraphForm from '../components/paragraph.form' class ParagraphList extends Component { @@ -20,7 +20,7 @@ class ParagraphList extends Component { setCurrentParagraph() { const { play_ts } = this.props.audio const insideParagraph = this.props.paragraphs.some(paragraph => { - if (floatLTE(paragraph.start_ts, play_ts) && floatLT(play_ts, paragraph.end_ts)) { + if (floatInRange(paragraph.start_ts, play_ts, paragraph.end_ts)) { this.setCurrentAnnotation(paragraph, play_ts) return true } |
