Skip to content

fix(socialmedia): handle empty frontend code in ref link label#93

Merged
Danswar merged 1 commit into
developfrom
fix/socialmedia-ref-link-empty-frontend
Apr 17, 2026
Merged

fix(socialmedia): handle empty frontend code in ref link label#93
Danswar merged 1 commit into
developfrom
fix/socialmedia-ref-link-empty-frontend

Conversation

@Danswar
Copy link
Copy Markdown

@Danswar Danswar commented Apr 17, 2026

Summary

Adds an early return in createRefCodeLabelLink when frontendCode is falsy, so downstream string handling is not invoked on missing values.

Changes

  • socialmedia/socialmedia.helper.ts: guard before toLowerCase() and ref code logic; minor whitespace cleanup.

Return early when frontendCode is falsy so we do not call string methods on undefined values.
@Danswar Danswar requested a review from TaprootFreak April 17, 2026 14:36
@Danswar Danswar merged commit ce2f359 into develop Apr 17, 2026
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