Fixed local state when not logged in
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user