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

Add field validation to resolve the Update Profile Issue #8809

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

Conversation

JavidSumra
Copy link

Proposed Changes

This PR introduces logic to disable the "Update" button on the profile update page when no changes are detected in the form fields. The useMemo hook compares the current form values with the user's existing data and detects any modifications.

@ohcnetwork/care-fe-code-reviewers

Demo Video

Click here to watch the demo video

Merge Checklist

  • Add specs that demonstrate bug / test a new feature.
  • Update product documentation.
  • Ensure that UI text is kept in I18n files.
  • Prep screenshot or demo video for changelog entry, and attach it to issue.
  • Request for Peer Reviews
  • Completion of QA

@JavidSumra JavidSumra requested a review from a team as a code owner October 17, 2024 03:51
Copy link

netlify bot commented Oct 17, 2024

Deploy Preview for care-ohc ready!

Name Link
🔨 Latest commit 217ae44
🔍 Latest deploy log https://app.netlify.com/sites/care-ohc/deploys/67123d97de4a7f00082d219d
😎 Deploy Preview https://deploy-preview-8809--care-ohc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

src/Components/Users/UserProfile.tsx Outdated Show resolved Hide resolved
src/Components/Users/UserProfile.tsx Outdated Show resolved Hide resolved
package-lock.json Outdated Show resolved Hide resolved
@nihal467
Copy link
Member

@JavidSumra fix the failing cypress test

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.

Unnecessary API Call on Profile Update Without Changes
4 participants