Skip to content
This repository was archived by the owner on Feb 26, 2020. It is now read-only.

Save users in database under their uid, not undefined. #14

Merged
merged 1 commit into from
Apr 28, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pages/signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class SignUpForm extends Component {
.doCreateUserWithEmailAndPassword(email, passwordOne)
.then(authUser => {
// Create a user in your own accessible Firebase Database too
db.doCreateUser(authUser.uid, username, email)
db.doCreateUser(authUser.user.uid, username, email)
.then(() => {
this.setState(() => ({ ...INITIAL_STATE }));
Router.push(routes.HOME);
Expand Down