Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed profile editing #3160

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

PavloButynets
Copy link
Contributor

@PavloButynets PavloButynets commented Jan 29, 2025

This PR depends on Backend PR #1180.
Merge the backend PR first to avoid breaking changes.

When sending a request to the server, the entire profileState object was sent, even those fields that were not edited, so a validation error occurred on the server because some fields (for example, professionalSummary, nativeLanguage) were empty strings. I also found another bug, when a user wanted to clear professionalSummary or nativeLanguage, he could not do it, because a request was also sent with an empty string and an error was thrown on the server. I implemented the request in such a way that only those fields that have changed are sent, and if the field is an empty string (“”), then null is sent

  • Before:
PR_3160.mp4
  • After
PR_3160.2.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(SP: ) Fix update button on EditProfile page
1 participant