Skip to content

Fix: Robust profile cover image source#713

Merged
feruzm merged 1 commit into
developfrom
seer/fix/profile-cover-image-src
Mar 23, 2026
Merged

Fix: Robust profile cover image source#713
feruzm merged 1 commit into
developfrom
seer/fix/profile-cover-image-src

Conversation

@sentry
Copy link
Copy Markdown
Contributor

@sentry sentry Bot commented Mar 23, 2026

Fixes ECENCY-NEXT-14TW. The issue was that: ProfileCard attempts to call .trim() on a null cover_image value received from the Hive API, causing a TypeError.

  • Added an explicit truthy check for data.profile.cover_image before attempting to call .trim().
  • This ensures the .trim() method is only invoked on valid, non-empty string values.
  • Improves the robustness of the profile cover image source logic in ProfileCard.
  • The fallback to the default placeholder image remains unchanged for null, undefined, or empty cover_image values.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 997925

Not quite right? Click here to continue debugging with Seer.

@feruzm feruzm merged commit 3f2c257 into develop Mar 23, 2026
@feruzm feruzm deleted the seer/fix/profile-cover-image-src branch March 23, 2026 05:23
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