Skip to content

Commit e6bfdd9

Browse files
authored
1 parent f4223d1 commit e6bfdd9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

apps/web/modules/onboarding/teams/invite/email/team-invite-email-view.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ export const TeamInviteEmailView = ({ userEmail }: TeamInviteEmailViewProps) =>
125125
router.replace(gettingStartedPath);
126126
};
127127

128+
const handleSubmitClick = () => {
129+
form.handleSubmit(handleContinue)();
130+
};
131+
128132
// Watch form values to pass to browser view for real-time updates
129133
const watchedInvites = form.watch("invites");
130134

@@ -152,11 +156,12 @@ export const TeamInviteEmailView = ({ userEmail }: TeamInviteEmailViewProps) =>
152156
{t("onboarding_skip_for_now")}
153157
</Button>
154158
<Button
155-
type="submit"
159+
type="button"
156160
color="primary"
157161
className="rounded-[10px]"
158162
disabled={!hasValidInvites || isSubmitting}
159-
loading={isSubmitting}>
163+
loading={isSubmitting}
164+
onClick={handleSubmitClick}>
160165
{t("continue")}
161166
</Button>
162167
</div>

0 commit comments

Comments
 (0)