Skip to content

Commit

Permalink
fix: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
duidae committed Nov 8, 2022
1 parent 7ea558b commit c6f726e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/dual-channel/src/app/components/text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class ArticleText extends React.Component {
chapters: PropTypes.arrayOf(predefinedPropTypes.chapter).isRequired,
// provided by redux
// currentAnchor: PropTypes.number.isRequired,
updatAnchorIndex: PropTypes.func.isRequired,
updateAnchorIndex: PropTypes.func.isRequired,
}

_handlePositionChange = (
Expand All @@ -87,7 +87,7 @@ class ArticleText extends React.Component {
positionState.previousSection = sectionIndex
}

this.props.updatAnchorIndex({
this.props.updateAnchorIndex({
...positionState,
})
}
Expand Down Expand Up @@ -142,7 +142,7 @@ class ArticleText extends React.Component {
}

const mapDispatchToProps = dispatch => ({
updatAnchorIndex: dispatch.position.update,
updateAnchorIndex: dispatch.position.update,
})

export default connect(
Expand Down

0 comments on commit c6f726e

Please sign in to comment.