Update 'src/components/timer.vue'

practiced-songs
mahuntington 1 year ago
parent 0fd0d5be7d
commit 43db528fa9

@ -171,7 +171,7 @@
},
mounted() {
this.practice_category_id = this.currentWorkingCategory.id
if(window.localStorage.getItem('lastTotalSeconds')){
if(window.localStorage.getItem('lastTotalSeconds') !== 'NaN'){
this.totalSeconds = parseInt(window.localStorage.getItem('lastTotalSeconds'))
} else {
this.totalSeconds = 0

Loading…
Cancel
Save