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

fix: resolved whitespace issue in AdminForm #1174

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

aniketxpawar
Copy link

Description

The Admin Form was accepting white spaces but the fields were required. So I added a form validation to avoid the user from entering whitespaces. The detailed issue can be seen here #1162 .

Related Issues

Fixes #1162

Steps to Test

  1. Navigate to Home page.
  2. Go to Profile settings from the profile icon on top right corner.
  3. Click on Edit button
  4. If blank spaces are given in input for "First Name" and "Last Name" it will not accept it and show validation error.

Screenshots (if applicable)

Before:
image

After:
image

Modified files

  1. ProfileAdminForm.jsx
  2. UpdateAdmin.jsx

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