developerFolio icon indicating copy to clipboard operation
developerFolio copied to clipboard

Fix: Conditionally Render Company Logo in Experience Card

Open ubednama opened this issue 3 weeks ago • 1 comments

Changes Made: Added a condition to check if cardInfo.companylogo exists before rendering the tag in the experience card component.

Reason for Change: Ensures that a circular logo icon is displayed only when a company logo is provided. This prevents the display of an empty circular icon when cardInfo.companylogo is not defined, improving the user experience.

Testing Done: Tested the change locally with scenarios where cardInfo.companylogo is both defined and undefined. Verified that the experience card renders correctly in both cases without errors.

Additional Notes: This change enhances the component's robustness by handling cases where the company logo is not available gracefully.

ubednama avatar Jun 13 '24 18:06 ubednama