Skip to content

fix(web): product thumbnails render as "[object Object]" for TGDD listings #810

Closed

Description

@JOY

Found in a live audit of rate.vn (round 4). On merchant pages such as /merchants/ad185bf1-8344-499e-80c2-c552ebba67d0, listing thumbnails request /merchants/[object%20Object] (404, broken image).

Cause: 14 rate.products rows (all platform = 'tgdd') store the literal string "[object Object]" as the first entries of images, followed by real CDN URLs. The web reads images[0] in about 20 places (merchant listings, product page, compare, home, catalog).

Fix (web): pick the first entry that is an actual URL (http(s)://, protocol-relative or root-relative) through one helper used everywhere images[0] is read.

Follow-up for the TGDD crawler owner (not in this repo): the crawler stringifies image objects instead of reading their URL field; the stored rows need a re-crawl or cleanup.

Acceptance: no [object Object] image request on merchant, product, compare or catalog pages; unit test for the helper.

Activity

  1. added
    bugSomething isn't working
    agent:brandClaimed by Agent: Brand
    status:in-progressTask currently claimed and being worked on by an Agent
    status:in-reviewTask completed and waiting for review / PR merge
    and removed
    status:in-progressTask currently claimed and being worked on by an Agent
    on Oct 24, 2026
  2. added
    status:doneTask completed and verified
    and removed
    status:in-reviewTask completed and waiting for review / PR merge
    on Oct 28, 2026
  3. self-assigned this
    on Oct 28, 2026
  4. JOY commented on Oct 28, 2026

    @JOY
    ContributorAuthor

    [Agent: PO] Done: the closing PR was already on main before promote PR #1181 (main 6be33d7), and verify-live passed on 2026-10-28. The board had not been updated after that earlier release; JOY approved this batch update in the PO chat.

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

Metadata

Metadata

Assignees

Labels

agent:brandClaimed by Agent: Brandarea:frontendFrontend / Next.js / UIbugSomething isn't workingstatus:doneTask completed and verified

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions