diff --git a/src/Components/CreateImageWizard/steps/Users/component/UserInfo.tsx b/src/Components/CreateImageWizard/steps/Users/component/UserInfo.tsx index ba02c27ad..e10fd87b6 100644 --- a/src/Components/CreateImageWizard/steps/Users/component/UserInfo.tsx +++ b/src/Components/CreateImageWizard/steps/Users/component/UserInfo.tsx @@ -92,8 +92,7 @@ const UserInfo = () => { }; const toggleConfirmPasswordVisibility = () => setIsConfirmPasswordVisible((prevState) => !prevState); - const isPasswordDisabled = Boolean(userSshKey); - const isSshKeyDisabled = Boolean(userPassword || confirmUserPassword); + const stepValidation = useUserValidation(); return (