File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,7 +119,6 @@ const UserSignup: React.FC<UserSignupProps> = ({
119119 } )
120120 ) ;
121121 if ( signupUser . fulfilled . match ( result ) ) {
122- // handleClose();
123122 if ( result . payload . requiresVerification ) {
124123 // Traditional signup - show verification message
125124 setSuccess ( true ) ;
@@ -219,17 +218,6 @@ const UserSignup: React.FC<UserSignupProps> = ({
219218 </ DialogTitle >
220219 < DialogContent >
221220 < Box component = "form" onSubmit = { handleSubmit } sx = { { mt : 2 } } >
222- { /* NEW: Success alert */ }
223- { success && (
224- < Alert severity = "success" sx = { { mb : 2 } } >
225- { successMessage }
226- </ Alert >
227- ) }
228- { error && (
229- < Alert severity = "error" sx = { { mb : 2 } } >
230- { error }
231- </ Alert >
232- ) }
233221 < TextField
234222 fullWidth
235223 label = "Username"
@@ -441,6 +429,18 @@ const UserSignup: React.FC<UserSignupProps> = ({
441429 } ,
442430 } }
443431 />
432+
433+ { /* Success / error alert */ }
434+ { success && (
435+ < Alert severity = "success" sx = { { mb : 2 } } >
436+ { successMessage }
437+ </ Alert >
438+ ) }
439+ { error && (
440+ < Alert severity = "error" sx = { { mb : 2 } } >
441+ { error }
442+ </ Alert >
443+ ) }
444444 < Button
445445 type = "submit"
446446 fullWidth
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ export const signupUser = createAsyncThunk(
4747 "auth/register" ,
4848 async ( signupData : SignupData , { rejectWithValue } ) => {
4949 try {
50- console . log ( "signupdata" , signupData ) ;
5150 const response = await AuthService . signup ( signupData ) ;
5251 return response ;
5352 } catch ( error : any ) {
You can’t perform that action at this time.
0 commit comments