library
library copied to clipboard
History localStorage does not function correctly
Expected Behavior
History should be stored locally in localStorage using a user-specific key, and this history should be used within an hour of it being stored.
Actual Behavior
Due to an assignment where a conditional should be as well as some other issues, the item in localStorage will never be used.
Possible Solution
A few small tweaks to the client-side logic would fix this — see #51 for another example of localStorage being used with a time-based expiry.