VikeLabs / Collabify

web-collabify.vercel.app
1 stars 0 forks source link

useAddRecentGroup hook enhancement #66

Closed BenReichwein closed 1 year ago

BenReichwein commented 1 year ago

In hooks/useAddRecentGroup.js we store recently visited groups in localStorage. The hook is called in groupHome, when a user visits a group.

Expected: When a user visits a group that they've visited before, it will resort the array and put the most recent group as the first array element

Actual: The user visits a group and it doesn't bring the most recent group to the first array element.