From f2fcc41cb17ece1fc5acf57809c5e3d61c236133 Mon Sep 17 00:00:00 2001
From: Piotr Russ <mail@pruss.it>
Date: Thu, 26 Nov 2020 22:20:54 +0100
Subject: completed jwt token login with refresh token, reduced db calls

---
 client/src/admin/jsx/User.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'client/src/admin/jsx/User.jsx')

diff --git a/client/src/admin/jsx/User.jsx b/client/src/admin/jsx/User.jsx
index 131251e..eb596bf 100644
--- a/client/src/admin/jsx/User.jsx
+++ b/client/src/admin/jsx/User.jsx
@@ -17,7 +17,7 @@ const User = ({ user, setUser, opened, setOpened }) => {
           className={`user__main-item${opened === 'user' ? ' user__main-item--active' : ''}`}
           onClick={() => setOpened(opened !== 'user' ? 'user' : false)}
         >
-          {user}
+          {user.email}
         </span>
         {
           opened === 'user' && (
-- 
cgit v1.2.3

