summaryrefslogtreecommitdiffstats
path: root/src/features/auth/hooks
diff options
context:
space:
mode:
authorAlberto Duarte Delgado <alberto@albertoduarte.com>2026-04-21 12:22:35 +0100
committerAlberto Duarte Delgado <alberto@albertoduarte.com>2026-04-21 12:22:35 +0100
commitc685ee8dd304b53c54b3661c2dc96f470af25737 (patch)
tree914e00f27263292a9d611d4c3ac08828d2151a16 /src/features/auth/hooks
parentbe90a5f202f80bb423c6e0aaf1c4d5feca668f01 (diff)
feat(offices): restaurar filtro de favoritos fixes #14
Diffstat (limited to 'src/features/auth/hooks')
-rw-r--r--src/features/auth/hooks/useLogin.ts2
-rw-r--r--src/features/auth/hooks/useRegister.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/features/auth/hooks/useLogin.ts b/src/features/auth/hooks/useLogin.ts
index 6af76c5..c83618f 100644
--- a/src/features/auth/hooks/useLogin.ts
+++ b/src/features/auth/hooks/useLogin.ts
@@ -19,7 +19,7 @@ export function useLogin() {
password,
});
- router.replace('/(protected)/home');
+ router.replace('/home');
} catch (err) {
setError(getErrorMessage(err, 'No se pudo iniciar sesión'));
} finally {
diff --git a/src/features/auth/hooks/useRegister.ts b/src/features/auth/hooks/useRegister.ts
index fe83d85..80899d9 100644
--- a/src/features/auth/hooks/useRegister.ts
+++ b/src/features/auth/hooks/useRegister.ts
@@ -21,7 +21,7 @@ export function useRegister() {
password,
});
- router.replace('/(protected)/home');
+ router.replace('/home');
} catch (err) {
setError(getErrorMessage(err, 'No se pudo registrar el usuario'));
} finally {