Skip to content

fix : aligned localStorage key to recentlyViewed across modal.js and main.js - #1838

Closed
tmdeveloper007 wants to merge 1 commit into
steam-bell-92:mainfrom
tmdeveloper007:pr1833
Closed

fix : aligned localStorage key to recentlyViewed across modal.js and main.js#1838
tmdeveloper007 wants to merge 1 commit into
steam-bell-92:mainfrom
tmdeveloper007:pr1833

Conversation

@tmdeveloper007

Copy link
Copy Markdown
Contributor

Summary of What Has Been Done

Fixed a localStorage key mismatch in web-app/js/modules/modal.js and web-app/js/main.js that caused the Recently Viewed feature to never display any projects.

Files changed: web-app/js/modules/modal.js, web-app/js/main.js

Changes Made

  • modal.js: Changed localStorage.getItem("recentProjects") to localStorage.getItem("recentlyViewed") and localStorage.setItem("recentProjects", ...) to localStorage.setItem("recentlyViewed", ...)
  • main.js: Made the same changes to getItem, setItem, removeItem, and debug log calls to use the consistent recentlyViewed key

This aligns all recently viewed writes and reads to use the same recentlyViewed localStorage key that index.html expects.

Impact it Made

  • The Recently Viewed section on the homepage now correctly displays the last-viewed projects
  • All three components (modal.js writes, main.js updates, index.html reads) now use the same key

Closes #1833

Note

Please assign this PR to the tmdeveloper007 account.

@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Anuj's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug : recently viewed projects feature broken due to localStorage key mismatch

2 participants