Fixing admin wizard step done (#6954)

pull/6930/head^2
Leo Giovanetti 2023-02-08 18:36:46 -03:00 committed by GitHub
parent 15da690270
commit 4d54ac3ca2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -15,7 +15,14 @@ export const AdminUserContainer = (props: React.ComponentProps<typeof AdminUser>
const { t } = useLocale(); const { t } = useLocale();
if (props.userCount > 0) if (props.userCount > 0)
return ( return (
<form id="wizard-step-1" name="wizard-step-1" className="space-y-4" onSubmit={props.onSuccess}> <form
id="wizard-step-1"
name="wizard-step-1"
className="space-y-4"
onSubmit={(e) => {
e.preventDefault();
props.onSuccess();
}}>
<EmptyScreen <EmptyScreen
Icon={FiUserCheck} Icon={FiUserCheck}
headline={t("admin_user_created")} headline={t("admin_user_created")}