From 6695e968510d619169e2018852ff115122e38ac5 Mon Sep 17 00:00:00 2001 From: stingl Date: Wed, 22 Sep 2021 15:26:57 +0200 Subject: [PATCH] fix booleans --- js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index 9207e68..bef82c2 100644 --- a/js/app.js +++ b/js/app.js @@ -110,13 +110,13 @@ const TimeTrack = { this.ticketSystemUrl = storedTicketSystemUrl == null ? '' : storedTicketSystemUrl; let storedShowPT = localStorage.getItem('showPT'); - this.showPT = (storedShowPT == null) ? true : storedShowPT; + this.showPT = (storedShowPT == null || storedShowPT === 'false') ? true : storedShowPT; let storedDontShowMinutes = localStorage.getItem('dontShowMinutes'); this.dontShowMinutes = (storedDontShowMinutes == null || storedDontShowMinutes === 'false') ? false : Boolean(storedDontShowMinutes); let storedPublicDB = localStorage.getItem('publicDB'); - this.publicDB = (storedPublicDB == null) ? false : storedPublicDB; + this.publicDB = (storedPublicDB == null || storedPublicDB === 'false') ? false : storedPublicDB; let storedTheme = localStorage.getItem('theme'); this.theme = storedTheme == null ? 'materia' : storedTheme;