Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in LoginUser for authentication-with-email-and-apollo example. #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dansteren
Copy link

For authentication-with-email-and-apollo example

Problem:
When navigating to http://localhost:3000/login the following message is displayed.

  11 | }
  12 | 
  13 | render () {
> 14 |   if (this.props.data.loading) {
  15 | 
  16 |     return (
  17 |       <div className='w-100 pa4 flex justify-center'>

Solution
The CreateLogin component uses a named graphql query, so the response is passed to props with that name (loggedInUserQuery) instead of data. This PR replaces this.props.data with this.props.loggedInUserQuery.

The CreateLogin component uses a named graphql query, so the response is passed to props with that name (`loggedInUserQuery`) instead of `data`.
@lionstone
Copy link

Why is this not merged? Had the same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants