From 3c333bc5ea8242ccf1ecd043a3fdd05ea51bc4d6 Mon Sep 17 00:00:00 2001
From: "tomasz.kasprowicz"
Date: Fri, 15 Jan 2021 20:28:43 +0100
Subject: [PATCH] fix redirect after login
---
src/components/Login.tsx | 2 +-
src/store/reducers/reducer.ts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/components/Login.tsx b/src/components/Login.tsx
index cfa6f5f..45bc5f5 100644
--- a/src/components/Login.tsx
+++ b/src/components/Login.tsx
@@ -85,7 +85,7 @@ const Login = (props: any) => {
)}
- {props.isAuth && }
+ {props.isAuth && }
);
};
diff --git a/src/store/reducers/reducer.ts b/src/store/reducers/reducer.ts
index c5a4e68..59ca98d 100644
--- a/src/store/reducers/reducer.ts
+++ b/src/store/reducers/reducer.ts
@@ -8,7 +8,7 @@ const initialState = {
error: null,
userId: null,
idToken: null,
- redirectTo: "",
+ redirectTo: "/",
};
interface ActionType {