From 778dda67d54df87347dd79577ef1bdc88d3c1d3f Mon Sep 17 00:00:00 2001 From: TheCatLady <52870424+TheCatLady@users.noreply.github.com> Date: Fri, 5 Mar 2021 10:52:43 -0500 Subject: [PATCH] fix(frontend): check for ID instead of email after initial setup Plex login (#1097) --- src/components/Setup/LoginWithPlex.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Setup/LoginWithPlex.tsx b/src/components/Setup/LoginWithPlex.tsx index 3dc0404e2..d62db786b 100644 --- a/src/components/Setup/LoginWithPlex.tsx +++ b/src/components/Setup/LoginWithPlex.tsx @@ -25,7 +25,7 @@ const LoginWithPlex: React.FC = ({ onComplete }) => { const login = async () => { const response = await axios.post('/api/v1/auth/plex', { authToken }); - if (response.data?.email) { + if (response.data?.id) { revalidate(); } };