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;