Skip to content
Snippets Groups Projects
Verified Commit 97eab8e8 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Avoid display quircks of duration

parent 40d33ccc
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,12 @@ export default {
},
getters: {
durationFormatted: state => {
return time.parse(Math.round(state.duration))
let duration = parseInt(state.duration)
if (duration % 1 !== 0) {
return time.parse(0)
}
duration = Math.round(state.duration)
return time.parse(duration)
},
currentTimeFormatted: state => {
return time.parse(Math.round(state.currentTime))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment