-
Notifications
You must be signed in to change notification settings - Fork 208
Fix bug that SAVE button at admin account form is not enabled when using the same username #2209
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
Conversation
…ing the same username
| disabled={ | ||
| formik.isValid === false || | ||
| formik.values.username === currentUsername | ||
| formik.values.username === "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| formik.values.username === "" |
I think this line is unnecessary because already validated here.
https://github.com/pipe-cd/pipe/pull/2209/files#diff-0e1fa1872588c27aac2a8c319a43642fd2a980e41ced4719c3d2c96fc00ac622R43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are totally right! Let me remove this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For sure!
|
Nice |
|
Nice catch |
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #2208
Does this PR introduce a user-facing change?: