Skip to content

Fix: whitespace-only biographies from being saved#400

Merged
Aditya948351 merged 1 commit into
devpathindcommunity-india:masterfrom
tanushkat96:fix-bio-trim
May 31, 2026
Merged

Fix: whitespace-only biographies from being saved#400
Aditya948351 merged 1 commit into
devpathindcommunity-india:masterfrom
tanushkat96:fix-bio-trim

Conversation

@tanushkat96
Copy link
Copy Markdown
Contributor

Fixes #234

Summary

Fixes an issue where users could save biographies containing only whitespace characters.

Changes

  • Trim biography content before saving.
  • Prevent whitespace-only values from being stored in Firestore.

Testing

  • Verified normal biography text (e.g. "abc") saves correctly.
  • Verified whitespace-only input is trimmed to an empty string before saving.

Thank you for your time and review. The change is limited to the assigned issue and has been tested with both normal and whitespace-only biography inputs.

Copy link
Copy Markdown
Collaborator

@Aditya948351 Aditya948351 left a comment

Choose a reason for hiding this comment

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

LGTM! Approved.

@Aditya948351 Aditya948351 merged commit be2e9a8 into devpathindcommunity-india:master May 31, 2026
@Aditya948351
Copy link
Copy Markdown
Collaborator

Do star the repo and thanks for the Contribution!

@Aditya948351 Aditya948351 added gssoc26 This is a official GirlScript Summer of Code label. level:beginner Beginner level issues type:bug gssoc:approved give 50+ base points labels May 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved give 50+ base points gssoc26 This is a official GirlScript Summer of Code label. level:beginner Beginner level issues type:bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Empty Biography Saving in UserProfile About Me Editor

2 participants