From 6a48e789d1c66a67a8707471fbd6ada01339f9c5 Mon Sep 17 00:00:00 2001 From: Matthew Huntington Date: Fri, 3 Jan 2025 21:15:25 -0500 Subject: [PATCH] dealing with NaN when starting in incognito --- src/components/timer.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/timer.vue b/src/components/timer.vue index f4927a1..628c202 100644 --- a/src/components/timer.vue +++ b/src/components/timer.vue @@ -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