Skip to content

Commit

Permalink
Fix multiple onError params not being passed through
Browse files Browse the repository at this point in the history
  • Loading branch information
albanqoku committed Jun 13, 2019
1 parent ca20af2 commit 2160078
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Player.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ export default class Player extends Component {
onEnded()
}
}
onError = (e) => {
onError = (...args) => {
this.isLoading = false
this.props.onError(e)
this.props.onError(...args)
}
onDurationCheck = () => {
clearTimeout(this.durationCheckTimeout)
Expand Down

0 comments on commit 2160078

Please sign in to comment.