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/login/jsx/LoginPanel.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'client/src/login/jsx/LoginPanel.jsx')

diff --git a/client/src/login/jsx/LoginPanel.jsx b/client/src/login/jsx/LoginPanel.jsx
index e90a5c4..96b118f 100644
--- a/client/src/login/jsx/LoginPanel.jsx
+++ b/client/src/login/jsx/LoginPanel.jsx
@@ -16,7 +16,7 @@ const LoginPanel = ({setUser}) => {
 
   const submit = (e) => {
     e.preventDefault();
-    login(email, password);
+    login({email, password});
   }
 
   return (
-- 
cgit v1.2.3

