patrickjneel / weatherly

Mod2 Weatherly
https://patrickjneel.github.io/weatherly/
MIT License
0 stars 0 forks source link

localStorage handling #73

Open letakeane opened 6 years ago

letakeane commented 6 years ago

Current handling (localStorage[0], localStorage.length) is fairly brittle. Update with more unique keys than "city" and "state" and make sure the conditional rendering is contingent on the existence of values in those keys, rather than the length of localStorage.