From c4af4c42ab00f1a63a2f5326c9cd8b26c19f4f14 Mon Sep 17 00:00:00 2001 From: sct Date: Mon, 22 Feb 2021 12:50:19 +0000 Subject: [PATCH] fix(frontend): check for id instead of email after logging in --- src/components/Login/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Login/index.tsx b/src/components/Login/index.tsx index c702ea13a..d812b7f73 100644 --- a/src/components/Login/index.tsx +++ b/src/components/Login/index.tsx @@ -37,7 +37,7 @@ const Login: React.FC = () => { try { const response = await axios.post('/api/v1/auth/login', { authToken }); - if (response.data?.email) { + if (response.data?.id) { revalidate(); } } catch (e) {