Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
siarheidudko committed Dec 29, 2023
1 parent 7b3183a commit a1d28d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/auth/Action.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function Action() {
: "resetEmail";
const oobCode = searchParams.get("oobCode");
const navigate = useNavigate();
const { REACT_APP_404, REACT_APP_AUTH_SIGNUP } = process.env;
const { REACT_APP_404, REACT_APP_AUTH_SIGNIN } = process.env;

const handleResetPassword = (event: FormEvent<HTMLFormElement>) => {
event.preventDefault();
Expand Down Expand Up @@ -108,7 +108,7 @@ export default function Action() {
.then(() => signOut(FirebaseAuth))
.then(() => {
setErrorMessage("");
navigate(REACT_APP_AUTH_SIGNUP || REACT_APP_404 || "/");
navigate(REACT_APP_AUTH_SIGNIN || REACT_APP_404 || "/");
})
.catch((err: FirebaseError) => {
if (errorMessagesMap[err.code]) {
Expand Down

0 comments on commit a1d28d6

Please sign in to comment.