Skip to content

Conversation

@nghialv
Copy link
Member

@nghialv nghialv commented Jul 12, 2021

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #2208

Does this PR introduce a user-facing change?:

Fix bug that SAVE button at admin account form is not enabled when using the same username

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 32.07%. This pull request does not change code coverage.

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for javascript is 84.50%. This pull request does not change code coverage.

disabled={
formik.isValid === false ||
formik.values.username === currentUsername
formik.values.username === ""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
formik.values.username === ""

I think this line is unnecessary because already validated here.
https://github.com/pipe-cd/pipe/pull/2209/files#diff-0e1fa1872588c27aac2a8c319a43642fd2a980e41ced4719c3d2c96fc00ac622R43

Copy link
Member Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For sure!

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 32.07%. This pull request does not change code coverage.

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for javascript is 84.50%. This pull request does not change code coverage.

@nakabonne
Copy link
Member

Nice
/lgtm

@khanhtc1202
Copy link
Member

Nice catch
/approve

@pipecd-bot
Copy link
Collaborator

APPROVE

This pull request is APPROVED by khanhtc1202.

Approvers can cancel the approval by writing /approve cancel in a comment. Any additional commits also will change this pull request to be not-approved.

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.

Unable to update only password of admin account

6 participants