Skip to content

Commit

Permalink
added button disabling when the fields are empty
Browse files Browse the repository at this point in the history
  • Loading branch information
markgol777 committed Nov 19, 2024
1 parent 11779e8 commit 4d794ed
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ const ChangePasswordModal = () => {
{t('common.cancel')}
</AppButton>
<AppButton
disabled={
!data.password || !data.confirmPassword || !data.currentPassword
}
size={SizeEnum.Large}
sx={styles.saveButton}
type={ButtonTypeEnum.Submit}
Expand Down

0 comments on commit 4d794ed

Please sign in to comment.