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

Commit b95e817

Browse files
authored
Merge pull request #14 from aarohmankad/master
Save users in database under their uid, not undefined.
2 parents 02c9919 + 01fb53b commit b95e817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/signup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class SignUpForm extends Component {
3939
.doCreateUserWithEmailAndPassword(email, passwordOne)
4040
.then(authUser => {
4141
// Create a user in your own accessible Firebase Database too
42-
db.doCreateUser(authUser.uid, username, email)
42+
db.doCreateUser(authUser.user.uid, username, email)
4343
.then(() => {
4444
this.setState(() => ({ ...INITIAL_STATE }));
4545
Router.push(routes.HOME);

0 commit comments

Comments
 (0)