Skip to content

Scheduling infrastructure for absolutely everyone.

Fixing admin wizard step done (#6954)

Leo Giovanetti4d54ac3ca2a2
diff --git a/apps/web/components/setup/AdminUser.tsx b/apps/web/components/setup/AdminUser.tsx
index 01336a417c7..7c213581b3f 100644
--- a/apps/web/components/setup/AdminUser.tsx
+++ b/apps/web/components/setup/AdminUser.tsx
@@ -15,7 +15,14 @@ export const AdminUserContainer = (props: React.ComponentProps<typeof AdminUser>
const { t } = useLocale();
if (props.userCount > 0)
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
Icon={FiUserCheck}
headline={t("admin_user_created")}