File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
apps/web/modules/onboarding/teams/invite/email Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -125,14 +125,13 @@ export const TeamInviteEmailView = ({ userEmail }: TeamInviteEmailViewProps) =>
125125 router . replace ( gettingStartedPath ) ;
126126 } ;
127127
128- const hasValidInvites = fields . some ( ( _ , index ) => {
129- const email = form . watch ( `invites.${ index } .email` ) ;
130- return email && email . trim ( ) . length > 0 ;
131- } ) ;
132-
133128 // Watch form values to pass to browser view for real-time updates
134129 const watchedInvites = form . watch ( "invites" ) ;
135130
131+ const hasValidInvites = watchedInvites . some ( ( invite ) => {
132+ return invite . email && invite . email . trim ( ) . length > 0 ;
133+ } ) ;
134+
136135 return (
137136 < OnboardingLayout userEmail = { userEmail } currentStep = { 3 } totalSteps = { 3 } >
138137 { /* Left column - Main content */ }
You can’t perform that action at this time.
0 commit comments