dealing with NaN when starting in incognito

practiced-songs
Matthew Huntington 12 months ago
parent ddea612f3a
commit 6a48e789d1

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

Loading…
Cancel
Save