Skip to content

Commit

Permalink
[Hotfix] Update logic for user reset password buttons' state
Browse files Browse the repository at this point in the history
  • Loading branch information
savindi7 committed Apr 30, 2024
1 parent fb29db1 commit 50dc7ca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions features/admin.users.v1/components/user-profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1132,9 +1132,7 @@ export const UserProfile: FunctionComponent<UserProfilePropsInterface> = (
onActionClick={ (): void => {
setOpenChangePasswordModal(true);
} }
isButtonDisabled={ accountLocked
? accountLocked
: user[ userConfig.userProfileSchema ]?.accountLocked }
isButtonDisabled={ accountLocked }
buttonDisableHint={ t("user:editUser." +
"dangerZoneGroup.passwordResetZone.buttonHint") }
/>
Expand Down

0 comments on commit 50dc7ca

Please sign in to comment.