File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
apps/web/modules/onboarding/teams/invite/email Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments