Skip to content

Commit

Permalink
friday improvement: fix submit on enter on local login page
Browse files Browse the repository at this point in the history
  • Loading branch information
karolina-siemieniuk-morawska committed Jan 29, 2024
1 parent 3619b73 commit 2881d97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/user/components/LocalLoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const LocalLoginPage = ({
) => void | Promise<any>) &
Function;
}) => {
function renderFormInput({ field, ...props }: { field: JSX.Element, props: any }) {
return <Input {...field} {...props} />;
function renderFormInput({ form, field, ...rest }: { form: any, field: JSX.Element, rest: any }) {
return <Input {...field} {...rest} />;
}

function renderLoginForm() {
Expand Down

0 comments on commit 2881d97

Please sign in to comment.