Skip to content

Commit 49a25ae

Browse files
fix: Update redirect path after successful registration to sign-in page
1 parent 6aa0079 commit 49a25ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

store/AuthStore/useAuthStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const useAuthStore = create<authStore>((set) => ({
6868
const response = await axios.post('/api/auth/register', signupMetaData);
6969
if (response.status === 201) {
7070
set({ user: signupMetaData });
71-
router.push('/dashboard');
71+
router.push('/auth/signin');
7272
set({ signupError: null });
7373
}
7474
} catch (error: any) {

0 commit comments

Comments
 (0)