diff --git a/src/screens/HomeScreen.js b/src/screens/HomeScreen.js
index cafed57..161f1fa 100644
--- a/src/screens/HomeScreen.js
+++ b/src/screens/HomeScreen.js
@@ -35,6 +35,12 @@ function QRCode() {
function Home() {
const history = useHistory();
+ const dispatch = useDispatch();
+
+ const handleLogout = () => {
+ dispatch(authLogout());
+ history.push("/login");
+ }
const isAuthenticated = useSelector(state => state.auth.isAuthenticated);
if (!isAuthenticated) return ;
@@ -59,7 +65,9 @@ function Home() {
contact, or allow them to create an account!
-
+
+
+
);