All values saved to localstorage are strings. You will need to convert your “true” and “false” values back to Boolean values to use your existing if statements or you change your if statement comparisons.