Skip to content

Commit

Permalink
Fix setting duration for new lesson
Browse files Browse the repository at this point in the history
Duration is a target, not a value.
  • Loading branch information
mauriciofierrom committed Mar 16, 2024
1 parent 7f00f75 commit aaf516c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/controllers/player_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export default class extends Controller {
onPause: () => {},
onPlaying: () => {
// TODO: This is a float so check the backend
if(this.hasDurationValue) {
if(this.hasDurationTarget) {
this.durationTarget.value = parseInt(this.player.duration)
}
}}
Expand Down

0 comments on commit aaf516c

Please sign in to comment.