Skip to content

Fix crash opening recent checks saved before product links - #40

Merged
benweru merged 1 commit into
mainfrom
hotfix/legacy-check-product-link
Nov 3, 2026
Merged

benweru merged 1 commit into
mainfrom
hotfix/legacy-check-product-link

Conversation

@benweru

@benweru benweru commented Nov 3, 2026

Copy link
Copy Markdown
Owner

Regression from #39: checks stored in localStorage before product links shipped carry offers without productLink, and ChemicalCard dereferenced offer.productLink.url unconditionally - reopening such a recent check crashed the page ('This page could not load'). Fix is two-layer: the card renders the link only when present, and parseHistory backfills the Kenya search link from brand and pack so legacy checks keep working links. Regression test covers a pre-link stored entry. 274/274 tests, lint/tsc/build clean.

Stored results from before PR #39 carry offers without productLink,
and ChemicalCard dereferenced it unconditionally, taking the page
down. The card now renders the link only when present, and
parseHistory backfills the Kenya search link from brand and pack so
old checks keep working links.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@vercel

vercel Bot commented Nov 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
bedsense Building Building Preview Nov 3, 2026 8:28pm UTC

@benweru
benweru merged commit fba3e76 into main Nov 3, 2026
3 of 4 checks passed
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.

1 participant