Skip to content
This repository was archived by the owner on Aug 25, 2018. It is now read-only.
This repository was archived by the owner on Aug 25, 2018. It is now read-only.

Firebase.child failed: Was called with 2 arguments. Expects no more than 1. #58

@cjfagerstrom

Description

@cjfagerstrom

When you click the register button, you get an error that 2 arguments were called on firebase.child instead of 1.

When this would occur, the user would be created in Firebase and trying to reregister would generate an error that the email was already taken. Logging in with the credentials and viewing the profile page displays no email address and no username.

I changed Ref.child('users', user.uid) to Ref.child('users').child(user.id) in login.js under the createProfile(user) function and that fixed the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions