day 56 - accidentally resetting localStorage on refresh, making headers sticky
Tried working on 2 issues today: (1) saved papers disappear upon page refresh, and (2) making the header sticky. (1) Papers disappearing upon page refresh This occurred as I would set the state of savedPapers to a blank array, then use set the value of an object in localStorage to savedPapers. I didn’t check if there was already an existing item in localStorage, which was why my saved papers would disappear as the value of “saved” would be reset to the equivalent of a blank array (but stringified, since localStorage only takes strings)....