Skip to content

Commit

Permalink
Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
strideynet committed Oct 17, 2024
1 parent 515490a commit e2b6880
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export function ConfigureBot({ nextStep, prevStep }: FlowStepProps) {
login: e.target.value,
})
}
rule={requireValidLinuxPrincipal}
rule={requireValidSSHUser}
/>
</FormItem>

Expand Down Expand Up @@ -230,9 +230,9 @@ const requireValidBotName = (value: string) => () => {
return { valid: true };
};

const requireValidLinuxPrincipal = (value: string) => () => {
const requireValidSSHUser = (value: string) => () => {
if (!value || !value.trim()) {
return { valid: false, message: 'Linux user is required' };
return { valid: false, message: 'SSH user is required' };
}

return { valid: true };
Expand Down

0 comments on commit e2b6880

Please sign in to comment.