Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
fivaz committed Jun 22, 2024
1 parent 8560c23 commit 3706e95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/login/login/Login.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { goto } from '$app/navigation';
import Alert from '$lib/components/alert/Alert.svelte';
import Button from '$lib/components/button/Button.svelte';
import { registerRoute, rootRoute } from '$lib/consts';
import { homeRoute, registerRoute } from '$lib/consts';
import { auth } from '$lib/firebase';
import { validator } from '@felte/validator-yup';
import { createForm } from 'felte';
Expand Down Expand Up @@ -41,7 +41,7 @@
onSubmit: async ({ email, password }) => {
isLoading = true;
await signInWithEmailAndPassword(auth, email, password);
void goto(rootRoute);
void goto(homeRoute);
},
});
Expand Down

0 comments on commit 3706e95

Please sign in to comment.