Skip to content

Commit bab1f03

Browse files
committed
remove debug console.log
1 parent 4645efc commit bab1f03

2 files changed

Lines changed: 12 additions & 13 deletions

File tree

src/components/User/UserSignup.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff 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

src/redux/auth/auth.action.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)