Skip to content

fix: allow editing profile with optional fields - #1467

Open
Tanvinaik09 wants to merge 1 commit into
OpenBeta:developfrom
Tanvinaik09:fix-profile-edit-validation
Open

fix: allow editing profile with optional fields#1467
Tanvinaik09 wants to merge 1 commit into
OpenBeta:developfrom
Tanvinaik09:fix-profile-edit-validation

Conversation

@Tanvinaik09

Copy link
Copy Markdown

Title:
fix: handle undefined optional profile fields

[x] bug fix

Related Issues:
Issue #1466

What this PR achieves:
Fixes the profile edit form validation when optional fields are empty.

Previously, empty profile fields could contain null or undefined values, causing the form to remain invalid even when only one field was updated.

This change normalizes displayName, bio, and website to empty strings when resetting the form, ensuring optional empty fields are handled correctly.

Notes:
The change is limited to normalizing optional profile fields during form reset.

Ensure reset function handles undefined values for displayName, bio, and website.
@Tanvinaik09

Copy link
Copy Markdown
Author

i have fixed the issue, can you please review it?

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