From 3d6bafe4364192e8eb8bac3db0ebbefad40d6b1b Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Fri, 6 Dec 2019 18:08:30 -0800 Subject: [PATCH] Fixed local state when not logged in --- client/src/App/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/App/App.js b/client/src/App/App.js index fe3fdfe30..bf8b7b9dc 100644 --- a/client/src/App/App.js +++ b/client/src/App/App.js @@ -39,8 +39,8 @@ export default function App({ authState }) { ...initialState, currentUser: { __typename: null, - email: authState.user.email, - displayName: authState.user.displayName + email: authState.user ? authState.user.email : null, + displayName: authState.user ? authState.user.displayName : null } } });