Skip to content

fix(frontend): fix-productcard-fallbacksrc-v2#401

Merged
Aamod-Dev merged 2 commits into
niharika-mente:mainfrom
ramya2006sri:fix-productcard-fallbacksrc-v2
Jun 22, 2026
Merged

fix(frontend): fix-productcard-fallbacksrc-v2#401
Aamod-Dev merged 2 commits into
niharika-mente:mainfrom
ramya2006sri:fix-productcard-fallbacksrc-v2

Conversation

@ramya2006sri

Copy link
Copy Markdown
Contributor

Description

Fixes an issue where ProductCard displays a broken image icon when the product image URL is invalid, deleted, or unavailable.

Changes Made

  • Added fallbackSrc to the Chakra UI Image component in ProductCard.jsx
  • Uses the same placeholder image pattern already used in ProductPage.jsx
  • Prevents broken image icons from being shown to users

Before

  • Broken image icon was displayed when the product image URL failed to load.

After

  • A placeholder image is displayed when the product image cannot be loaded.

Testing

  • Verified that the Image component includes a valid fallbackSrc
  • Confirmed behavior is consistent with other components that already use image fallbacks

Fixes #384

@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown

@ramya2006sri is attempting to deploy a commit to the niharika-mente's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Aamod-Dev Aamod-Dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds \ allbackSrc\ to ProductCard Image — consistent with the existing pattern in ProductPage. Prevents broken image icons. The indentation/whitespace reformatting adds diff noise but the functional change is correct. LGTM.

@Aamod-Dev Aamod-Dev merged commit e146f41 into niharika-mente:main Jun 22, 2026
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants